I have a program that uses jCheckBoxes. basically, each checkbox controls a number of other checkboxes. I need the parent checkbox to be in the indeterminate state if the other checkboxes do not all contain the same value. But if the user clicks the indeterminate checkbox, they should be able to cycle between checked and unchecked only (i.e. they cannot switch back to indeterminate), which would in turn change the values of all the other boxes to match. Similarly, if the user changes the value of one of the sub check boxes, the parent checkbox should switch back to indeterminate. How can I accomplish this?
Thanks in advance!