This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes How to hide a tree node from the GUI, URGENT! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to hide a tree node from the GUI, URGENT!" Watch "How to hide a tree node from the GUI, URGENT!" New topic
Author

How to hide a tree node from the GUI, URGENT!

Linda Xu
Ranch Hand

Joined: Feb 14, 2000
Posts: 51
Hi, All
I used a JTree in my project in which I have a DefaultTreeModel to store all the tree structure and a JTree show it on the screen. But for some reason, I want to hide some of the nodes from the user, but I don't want to remove them from the tree model because later on I still need to use them.
How can I hide some of the tree node from the user? Thanks for any information.
Linda
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to hide a tree node from the GUI, URGENT!