Component (Container focusCycleRoot) { if (!(focusCycleRoot instanceof JComponent)) { return super.getDefaultComponent(focusCycleRoot); } return getPreferredFocusedComponent((JComponent)focusCycleRoot, this); }