Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JGraph library to visually display the object tree  RSS feed

 
krish rama
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am novice to the JGraph library and swing based application. I am trying to display the Tree/Graph data (the tree/graph is stored in XML files )in swing based editor. It was planned to use JGraph library for vizualizing the data and JAXB to create an object tree representing xml configuration.

1) What kind of data structure (ArrayList or Vector) is used to store tree data ? 2) How could i produce the graph in swing based editor?

Please help me how to approach the above requirement.

Regards, Krishna
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can probably leverage on the DefaultMutableTreeNode. It has built in facility for one parent and zero or more children.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!