void (ItemEvent e) { if (e.getStateChange() == ItemEvent.SELECTED && e.getItem() == RadButtonGroup.NEW_GROUP) { String newGroupName = myRootContainer.suggestGroupName(); newGroupName = (String)JOptionPane.showInputDialog(myCbx, UIDesignerBundle.message("button.group.name.prompt"), UIDesignerBundle.message("button.group.name.title"), JOptionPane.QUESTION_MESSAGE, null, null, newGroupName); if (newGroupName != null) { RadButtonGroup group = myRootContainer.createGroup(newGroupName); myRootContainer.setGroupForComponent(myComponent, group); updateModel(); } } }