Be seen. Boost your question’s priority for more expert views and faster solutions
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
From novice to tech pro — start learning today.
One easy way is to use a predefined graphical component and I think that is what you are looking for. I would suggest that you take a look at the JTree class in the Java Foundation Classes. Try the follwing URL's for more information:
How to use trees:
http://java.sun.com/docs/books/tutorial/ui/swing/tree.html
Using the JFC/Swing packages:
http://java.sun.com/docs/books/tutorial/ui/swing/
JFC - documentation
http://java.sun.com/products/jfc/docs.html
Once you have a good tree component to use it should be quite easy to map the text version onto the graphics version depending
on your design.
Hope this helps
Fredrik