File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
It's not a secret anymore!