• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

About JTree

 
Murali Obla
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic