JComponent () { if (!mySearchTextOccurrencesEnabled) { myCbSearchTextOccurrences.setEnabled(false); myCbSearchTextOccurrences.setVisible(false); myCbSearchTextOccurrences.setSelected(false); } return myMainPanel; }