boolean () { if(myComponent instanceof JComboBox) { return ((JComboBox<?>) myComponent).getEditor().getEditorComponent().requestFocusInWindow(); } else { return myComponent.requestFocusInWindow(); } }