Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Swing / AWT / SWT and the fly likes Using Custom Tree Cell rendering 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 "Using Custom Tree Cell rendering" Watch "Using Custom Tree Cell rendering" New topic
Author

Using Custom Tree Cell rendering

Pooja Prasad
Greenhorn

Joined: Mar 28, 2003
Posts: 3
Using custom Tree cell rendering, i have coded for a JTree to have check-boxs on each of it's node. As a node is selected, all its parents up the hierarchy are automatically selected. When a parent node's checkbox is selected all it's childs are selected. One can then manually go and un-select the child node as pr requirement.
How do i implement the following: Once a child is unselected. All it's parent nodes up the hierarchy should be Greyed to indicate partial selection.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using Custom Tree Cell rendering
 
Similar Threads
deletion of Node in JTree
Refresh dynamic tree in tapestry
Tree structure retrieval from Database
Tree data with multiple top nodes
Tree Cell Renderer