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