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

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies 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.
Consider Paul's rocket mass heater.
subject: Using Custom Tree Cell rendering
Similar Threads
Tree data with multiple top nodes
deletion of Node in JTree
Refresh dynamic tree in tapestry
Tree structure retrieval from Database
Tree Cell Renderer