Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

make JTree as empty

 
swarna latha
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
How can i create empty JTree

If i create JTree in that all root and nodes are visible.But in our requirement first i need to show empty tree.If i get add only i can
get show root or leaf nodes

Please help on this

Thanks and Regards
K.SwarnaLatha
 
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
Have you tried tree.setRootVisible(false) ?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!