JYCheckBox support three different states - see JYCheckBox.State. An ItemListener can be used to get notified on a state change.

All relevant lines are highlighted. Press the "Run..." button to start the demo.