how to check if a checkbox is checked in java?
['Active. Use addActionListener or addItemListener() so that a method will be called whenever the checkbox is changed.', 'Passive. Use isSelected() to test if a checkbox is checked.']