Using Java Swing: Which Components to use


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 5 of 5

Thread: Using Java Swing: Which Components to use

Hybrid View

  1. #1
    Join Date
    Jul 2005
    Posts
    23

    Question Using Java Swing: Which Components to use

    Hi,

    I need a guide here. I want to develop a program to simulate a simple logic circuit (AND, OR, NAND, NOR, XOR, XNOR gates). Here are the properties of the program.( These gates are images):

    • There is a dialog box containing all the gates where I can select which gate to use and drag it onto the display area.
    • The gates on the display area can be connected through lines.
    • The circuit can accept input bits
    • The circuit can compute the output bits given the input bits
    • I can open an input file (probably XML) that contains a circuit and display it on the display area and run simulation on it.


    So, what Java Swing components that I can use to display the circuit?

    What component of Java Swing that support XML file manipulation?

    Any other advice ??

    Thank you.

  2. #2
    Join Date
    Jun 2004
    Posts
    199
    Check out JGraph for some Swing components.

    I would just use the standard Java XML APIs to process the XML file. There is no need for a visual component to do this. Other than maybe a open file dialog.

  3. #3
    Join Date
    Jul 2005
    Posts
    23
    I'll check on JGraph. At least I have some hint to proceed. Thanks.

    Do you mean using SAX.. or is it DOM for the XML?

    Thank you...

  4. #4
    Join Date
    Jun 2004
    Posts
    199
    Either. I usually map XML to objects now. With something like Castor. Processsing a XML is not fun. I try not to do it by hand any more.

  5. #5
    Join Date
    Jul 2005
    Posts
    23

    Talking

    Thank you very much mnuttall...

    U have helped me alot. I really appreciate it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center