JComponent () { JPanel panel = new JPanel(); myRbRenameMember = new JRadioButton(GroovyRefactoringBundle.message("rename.member", getDescription())); myRbRenameProperty = new JRadioButton(GroovyRefactoringBundle.message("rename.property", getPropertyName())); ButtonGroup gr = new ButtonGroup(); gr.add(myRbRenameProperty); gr.add(myRbRenameMember); myRbRenameProperty.setSelected(true); Box box = Box.createVerticalBox(); box.add(Box.createVerticalStrut(5)); box.add(myRbRenameProperty); box.add(myRbRenameMember); panel.add(box, BorderLayout.CENTER); RadioUpDownListener.installOn(myRbRenameMember, myRbRenameProperty); return panel; }