javax.swing
public interface ComboBoxModel extends ListModel
JComboBox as well as the current
combo box selection. Whenever the selection in the JComboBox
changes, the ComboBoxModel should fire a {@link ListDataEvent}
to the model's {@link ListDataListener}s.
| Method Summary | |
|---|---|
| Object | getSelectedItem()
Returns the currently selected item in the combo box.
|
| void | setSelectedItem(Object item)
Sets the selected item in the combo box. |
Returns: The selected item (possibly null).
Parameters: item the selected item (null permitted).