void () { myPanel = new JPanel(new GridBagLayout()); myComboBox = new ComboBox<>(); for (QualifyJavadocOptions options : QualifyJavadocOptions.values()) { myComboBox.addItem(options); } myComboBox.setRenderer(SimpleListCellRenderer.create("", QualifyJavadocOptions::getPresentableText)); JLabel title = new JLabel(JavaBundle.message("radio.use.fully.qualified.class.names.in.javadoc")); myPanel.setBorder(BorderFactory.createEmptyBorder(5, 0, 5, 0)); GridBagConstraints left = new GridBagConstraints(); left.anchor = GridBagConstraints.WEST; GridBagConstraints right = new GridBagConstraints(); right.anchor = GridBagConstraints.WEST; right.weightx = 1.0; right.insets = JBUI.insetsLeft(5); myPanel.add(title, left); myPanel.add(myComboBox, right); }