Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
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

Using Custom Tree Cell rendering

Pooja Prasad

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:
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