• Post Reply Bookmark Topic Watch Topic
  • New Topic

Using Tri State checkbox in JTree

 
Pooja Prasad
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have made aJTree which has JCheckBoxs on it's every Node. I have done so by using a custom class which implements TreeCellRenderer and has a method for getTreeCellRendererComponent(). How can implement the following: At the selection of a Node all it's subsequent parent nodes are selected. They will be greyed to show the partial selection. Once all the items are selected the color cahnges back to white.
 
Zhao Fu Qiang
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, prasad pooja:
We have implements this behavior, and plan to release a component like this, named XTree, if you need help, please contact us!

Homepage:
http://www.zfqjava.com
[ March 28, 2003: Message edited by: Zhao Fu Qiang ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!