File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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!