aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes About JTree Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "About JTree" Watch "About JTree" New topic
Author

About JTree

Murali Obla
Ranch Hand

Joined: Nov 18, 2001
Posts: 40
Hi,
I have created a JTree using DefaultMutableTreeNodes which is HotCodded.But I need to create the Tree Dynamically ie if i add some node in database,it should be created in the Tree.
So,How to insert Default Mutable Tree Nodes dynamically from the SQL Server Database.
Please Reply Earlier,
Advance Thanks,
Regards,
Murali
[This message has been edited by Murali Sivanath (edited November 18, 2001).]


"Excellence is never an accident; it is always the result of high intention, sincere effort, intelligent direction, skillful execution, and the vision to see obstacles as opportunities"
Manfred Leonhardt
Ranch Hand

Joined: Jan 09, 2001
Posts: 1492
Hi Murali,
Take a look at this link. It has good examples of a dynmically changing tree.
http://java.sun.com/docs/books/tutorial/uiswing/components/tree.html#dynamic
Regards,
Manfred.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: About JTree