JavaTM 2 Platform
Std. Ed. v1.3

javax.swing
Interface MutableComboBoxModel

All Superinterfaces:
ComboBoxModel, ListModel
All Known Implementing Classes:
DefaultComboBoxModel

public interface MutableComboBoxModel
extends ComboBoxModel

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

addElement

public void addElement(Object obj)
Adds an item to the end of the model.
Parameters:
obj - the Object to be added

removeElement

public void removeElement(Object obj)
Removes an item from the model.
Parameters:
obj - the Object to be removed

insertElementAt

public void insertElementAt(Object obj,
                            int index)
Adds an item at a specific index
Parameters:
obj - the Object to be added
index - location to add the object

removeElementAt

public void removeElementAt(int index)
Removes an item at a specific index
Parameters:
index - location of object to be removed

JavaTM 2 Platform
Std. Ed. v1.3

Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.