public class BuilderComboBoxModel extends SortedComboBoxModel
BuilderComboBoxModel is a basic combo box model
that uses case-sensitive sorting, and makes the model disallow null
selections (i.e., users cannot control-click an item to unselect it.)DEFAULT_COMPARATOR| Constructor and Description |
|---|
BuilderComboBoxModel()
Constructs an empty combo box model.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setSelectedItem(java.lang.Object anObject)
Sets the selected item of the combo box model to the specified
object.
|
addElement, setComparatorgetElementAt, getIndexOf, getSelectedItem, getSize, insertElementAt, removeAllElements, removeElement, removeElementAtaddListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListenerpublic BuilderComboBoxModel()
public void setSelectedItem(java.lang.Object anObject)
setSelectedItem in interface javax.swing.ComboBoxModelsetSelectedItem in class javax.swing.DefaultComboBoxModelanObject - the object to set as the selected item