That's right, this one slipped through. As a matter of fact, here is how both methods should look like:
public void setSelected(AbstractButton button, boolean selected) { if (button != null) setSelected(button.getModel(), selected); }
public void setSelected(ButtonModel model, boolean selected) { AbstractButton button = getButton(model); if (buttons.contains(button)) { super.setSelected(model, selected); if (getSelection() == button.getModel()) selectedButton = button; } }
Thanks for noticing DT
|