File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Heirarchy in SWING

 
Harsha Nadiger
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to create a hierarchy structure of, suppose, a manager/subordinate relation. Its a n-ary tree.

I have the database table ready that gives me the hierarchy data, I just want to put it on the GUI in the form of a tree/hierarchy.
I am aware of the JTree type available with the Swing, but I dont want to use it. I want the structure to have rich UI (like RIA)

Please suggest me to choose the right things/options that suit my requirements.


Thanks,
Harsha
 
Maneesh Godbole
Saloon Keeper
Posts: 10971
11
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Harsha Nadiger wrote:I want the structure to have rich UI (like RIA)

RIA, by definition, are web applications which try to look and behave like desktop/stand alone applications. JTree is a stand alone application component.
If you are not happy with the way your JTree looks, you can tweak it using renderers.
More on renderers here http://download.oracle.com/javase/tutorial/uiswing/components/tree.html#display
 
Harsha Nadiger
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is what I was looking for.

Thanks for the qucik response Maneesh!
 
Maneesh Godbole
Saloon Keeper
Posts: 10971
11
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are welcome.
Could you please mark the topic as "solved" by clicking on the at the bottom of the posts?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic