Example usage for Java javax.swing DefaultComboBoxModel fields, constructors, methods, implement or subclass
The text is from its open source code.
DefaultComboBoxModel(final E[] items) Constructs a DefaultComboBoxModel object initialized with an array of objects. | |
DefaultComboBoxModel(Vector Constructs a DefaultComboBoxModel object initialized with a vector. | |
DefaultComboBoxModel() Constructs an empty DefaultComboBoxModel object. |
void | addElement(E anObject) |
void | addListDataListener(ListDataListener l) Adds a listener to the list that's notified each time a change to the data model occurs. |
E | getElementAt(int index) |
int | getIndexOf(Object anObject) Returns the index-position of the specified object in the list. |
Object | getSelectedItem() |
int | getSize() |
void | insertElementAt(E anObject, int index) |
void | removeAllElements() Empties the list. |
void | removeElement(Object anObject) |
void | removeElementAt(int index) |
void | setSelectedItem(Object anObject) Set the value of the selected item. |