JComponent () { JPanel panel = new JPanel(new GridBagLayout()); JPanel allOptionsPanel = createAllOptionsPanel(); if (allOptionsPanel != null) { panel.add(allOptionsPanel, new GridBagConstraints(0, 0, 1, 1, 1.0, 1.0, GridBagConstraints.CENTER, GridBagConstraints.BOTH, JBInsets.emptyInsets(), 0, 0)); } if (myIsShowInNewTabVisible) { myCbToOpenInNewTab = new JCheckBox(FindBundle.message("find.open.in.new.tab.checkbox")); myCbToOpenInNewTab.setSelected(myToShowInNewTab); myCbToOpenInNewTab.setEnabled(myIsShowInNewTabEnabled); panel.add(myCbToOpenInNewTab, new GridBagConstraints(0, 1, 1, 1, 1.0, 0.0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, JBUI.insets(15, 0, 13, 0), 0, 0)); } return panel; }