Search code examples
javauser-interfacesimulatorcircuit

How to code GUI for logic design in Java?


I am a beginner coder in Java, just learning how to code for the GUI. My concern is I am not getting the part where I will be able to show various logic gates (AND, OR, etc) according to the input function. I have written the code for Boolean Simplification, now all I have to do to show that in LOGIC DIAGRAM. But I really dont know what to do for that purpose,as I am new to GUI. Any direction/link/tutorial regarding this will be highly helpful. Thnks in advance.


Solution

  • Use Jgraph or JUNG in order to create a graph where the nodes of the graph are gates and the links between are wires. Both libraries have nice layout managers so your schematic will look nice by default.