Expandable checkboxes as in custom install applications

Hi,

Does anyone know how you would go about implementing one of those checkbox trees that you see when you do  custom install of some applications, where there is a heirarchy of functions you can install.  You navigate up and down the tree by expanding and contracting it using plus an minus signs.  If one branch of the tree has only some of it's sub-branches selected, then it's tick is grey, if all are selected then it's black, if none are selected then it remains unticked.  

I would need actions attached to the checkboxes so that the program could respond to the ticking or unticking of a box in real-time.

Let me know if this is unclear.  I'm using 1.5.

Cheers,
Steve.
LVL 5
steve_bagnallAsked:
Who is Participating?
 
TimYatesConnect With a Mentor Commented:
http://www.objects.com.au/java/examples/swing/CheckBoxTreeCell.do

shows how to do the checkbox tree bit...

then you would just need to add code to the selection event, to select/deselect all the children

And alter the renderer to be grey if not all the children are selected...

Tim
0
 
steve_bagnallAuthor Commented:
Cheers Tim.
0
 
TimYatesCommented:
No worries!  Let me know if you get stuck! :-)

Tim
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.