• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 198
  • Last Modified:

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.
0
steve_bagnall
Asked:
steve_bagnall
  • 2
1 Solution
 
TimYatesCommented:
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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now