ComboBoxCompositeEditorStrategy (F focusableComponent) { ComboBoxCompositeEditorStrategy strategy = null; if (focusableComponent instanceof JTextField) { strategy = jTextFieldStrategy; } else if (focusableComponent instanceof EditorTextField) { strategy = editorTextFieldStrategy; } else if (focusableComponent instanceof JLabel) { strategy = jLabelStrategy; } return strategy; }