JComponent () { JPanel panel = new JPanel(new GridBagLayout()); GridBagConstraints gbConstraints = new GridBagConstraints(); gbConstraints.insets = JBInsets.create(4, 8); gbConstraints.weighty = 1; gbConstraints.weightx = 1; gbConstraints.gridy = 0; gbConstraints.gridwidth = GridBagConstraints.REMAINDER; gbConstraints.fill = GridBagConstraints.BOTH; gbConstraints.anchor = GridBagConstraints.WEST; panel.add(createDescriptionLabel(), gbConstraints); gbConstraints.gridy++; myCbReplaceUsages = new JCheckBox(JavaRefactoringBundle.message("replace.instance.qualifiers.with.class.references")); panel.add(myCbReplaceUsages, gbConstraints); myCbReplaceUsages.setSelected(true); return panel; }