public interface javax.swing
MutableComboBoxModel


Hide details Login
Java SE 6
  
Implements: ComboBoxModel
Implemented by: DefaultComboBoxModel

A mutable version of ComboBoxModel.
version1.13 11/17/05

Methods
public void addElement(Object obj)
Adds an item at the end of the model. The implementation of this method should notify all registered ListDataListeners that the item has been added.
objthe Object to be added
public void insertElementAt(Object obj, int index)
Adds an item at a specific index. The implementation of this method should notify all registered ListDataListeners that the item has been added.
objthe Object to be added
indexlocation to add the object
public void removeElement(Object obj)
Removes an item from the model. The implementation of this method should should notify all registered ListDataListeners that the item has been removed.
objthe Object to be removed
public void removeElementAt(int index)
Removes an item at a specific index. The implementation of this method should notify all registered ListDataListeners that the item has been removed.
indexlocation of object to be removed