wood burning stoves 2.0
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 Building Microservices this week in the Design 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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: How to hide a tree node from the GUI, URGENT!
 
It's not a secret anymore!