JComponent () { JPanel panel = new JPanel(new BorderLayout()); myRbMoveInner = new JRadioButton(); myRbMoveInner.setText(JavaRefactoringBundle.message("move.inner.class.to.upper.level", myClassName)); myRbMoveInner.setSelected(true); myRbMoveMembers = new JRadioButton(); myRbMoveMembers.setText(JavaRefactoringBundle.message("move.inner.class.to.another.class", myClassName)); ButtonGroup gr = new ButtonGroup(); gr.add(myRbMoveInner); gr.add(myRbMoveMembers); RadioUpDownListener.installOn(myRbMoveInner, myRbMoveMembers); Box box = Box.createVerticalBox(); box.add(Box.createVerticalStrut(5)); box.add(myRbMoveInner); box.add(myRbMoveMembers); panel.add(box, BorderLayout.CENTER); return panel; }