|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A mutable version of ComboBoxModel
.
Method Summary | |
void |
addElement(Object obj)
Adds an item to the end of the model. |
void |
insertElementAt(Object obj,
int index)
Adds an item at a specific index |
void |
removeElement(Object obj)
Removes an item from the model. |
void |
removeElementAt(int index)
Removes an item at a specific index |
Methods inherited from interface javax.swing.ComboBoxModel |
getSelectedItem, setSelectedItem |
Methods inherited from interface javax.swing.ListModel |
addListDataListener, getElementAt, getSize, removeListDataListener |
Method Detail |
public void addElement(Object obj)
obj
- the Object
to be addedpublic void removeElement(Object obj)
obj
- the Object
to be removedpublic void insertElementAt(Object obj, int index)
obj
- the Object
to be addedindex
- location to add the objectpublic void removeElementAt(int index)
index
- location of object to be removed
|
JavaTM 2 Platform Std. Ed. v1.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.