JPanel () { if (myEditConfigOnly) return null; final JPanel panel = new JPanel(new BorderLayout()); panel.setBorder(BorderFactory.createEmptyBorder(0, 6, 0, 0)); myOpenInNewTab = new JCheckBox(SSRBundle.message("open.in.new.tab.checkbox")); myOpenInNewTab.setSelected(FindSettings.getInstance().isShowResultsInSeparateView()); panel.add(myOpenInNewTab, BorderLayout.EAST); return panel; }