JComponent () { for (@NlsSafe String name : getPropertyNames(myFiles)) { myPropertyNameBox.addItem(name); } if (myPropertyName != null) { myPropertyNameBox.getEditor().setItem(myPropertyName); myPropertyNameBox.getEditor().selectAll(); } mySetPropertyButton.addChangeListener(e -> { if (mySetPropertyButton.isSelected()) { myValueText.setEnabled(true); } else { myValueText.setEnabled(false); } }); myRecursiveButton.setEnabled(myIsRecursionAllowed); return myMainPanel; }