This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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
 
Don't get me started about those stupid light bulbs.
 
subject: How to hide a tree node from the GUI, URGENT!
 
Similar Threads
Searching a JTree
JTree
Edit Values in a JTree
JTree
JTree