File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

About JTree

Murali Obla
Ranch Hand

Joined: Nov 18, 2001
Posts: 40
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,
[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.
I agree. Here's the link:
subject: About JTree
It's not a secret anymore!