Module java.desktop

Class BasicComboBoxEditor

    • Field Detail

      • editor

        protected JTextField editor
        An instance of JTextField.
    • Constructor Detail

      • BasicComboBoxEditor

        public BasicComboBoxEditor()
        Constructs a new instance of BasicComboBoxEditor.
    • Method Detail

      • createEditorComponent

        protected JTextField createEditorComponent()
        Creates the internal editor component. Override this to provide a custom implementation.
        Returns:
        a new editor component
        Since:
        1.6
      • setItem

        public void setItem​(Object anObject)
        Sets the item that should be edited.
        Specified by:
        setItem in interface ComboBoxEditor
        Parameters:
        anObject - the displayed value of the editor