[java] How to check that a JCheckBox is checked?