public JComponent getPreferredFocusableComponent() {
    return mySwitcher.getElements().length > 1 ? myFileChooser : myEditor.getContentComponent();
  }
public JComponent getPreferredFocusableComponent()