void (ItemEvent e) { if (e.getStateChange() == ItemEvent.SELECTED && e.getItem() != null) { myButtonEnumModel.setSelected(Choice.USE_LIBRARY); } updateState(); onVersionChanged(getPresentableVersion()); }