void (ChangeEvent e) { if (myWasSelected != myButton.isSelected()) { myWasSelected = myButton.isSelected(); myUnitsCombo.setEnabled(myButton.isSelected()); mySpinner.setEnabled(myButton.isSelected()); if (myButton.isSelected() && mySpinner.getValue().equals(Integer.valueOf(0))) { mySpinner.setValue(100); } updateOnRadioChange(); } }