java.lang.Object
javax.swing.plaf.basic.BasicComboBoxEditor
- All Implemented Interfaces:
- FocusListener,- EventListener,- ComboBoxEditor
- Direct Known Subclasses:
- BasicComboBoxEditor.UIResource,- MetalComboBoxEditor
public class BasicComboBoxEditor extends Object implements ComboBoxEditor, FocusListener
The default editor for editable combo boxes. The editor is implemented as a JTextField.
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classBasicComboBoxEditor.UIResourceA subclass of BasicComboBoxEditor that implements UIResource.
- 
Field SummaryFields Modifier and Type Field Description protected JTextFieldeditorAn instance ofJTextField.
- 
Constructor SummaryConstructors Constructor Description BasicComboBoxEditor()Constructs a new instance ofBasicComboBoxEditor.
- 
Method SummaryModifier and Type Method Description protected JTextFieldcreateEditorComponent()Creates the internal editor component.voidsetItem(Object anObject)Sets the item that should be edited.Methods declared in class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods declared in interface javax.swing.ComboBoxEditoraddActionListener, getEditorComponent, getItem, removeActionListener, selectAll
- 
Field Details- 
editorAn instance ofJTextField.
 
- 
- 
Constructor Details- 
BasicComboBoxEditorpublic BasicComboBoxEditor()Constructs a new instance ofBasicComboBoxEditor.
 
- 
- 
Method Details- 
createEditorComponentCreates the internal editor component. Override this to provide a custom implementation.- Returns:
- a new editor component
- Since:
- 1.6
 
- 
setItemSets the item that should be edited.- Specified by:
- setItemin interface- ComboBoxEditor
- Parameters:
- anObject- the displayed value of the editor
 
 
-