Hello All,
A project that I am working on requires me to show the network layout when the user clicks on a button on a GUI panel “Show Network”.
Example: X is the name of a sub-network and x1, x2, x3 are the connected devices.
Similarly, Y is the name of a sub-network and y1, y2, y3 are the connected devices and so on.
How they are connected to each other and in which direction is defined in a flat file.
This is how the image should look:

Network Diagram

The question is what is the best way I can do this using Java. Am not asking for the programming part but what Java tool can be used to accomplish this. A sample example would be really helpful.