au.edu.swin.synergy.lib
Class BComboBoxModel
java.lang.Object
|
+--javax.swing.AbstractListModel
|
+--au.edu.swin.synergy.lib.BListModel
|
+--au.edu.swin.synergy.lib.BComboBoxModel
- public class BComboBoxModel
- extends BListModel
- implements ComboBoxModel
Provides a generic means of placing items in a JComboBox
- Author:
- Matthew Evans
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
BComboBoxModel
public BComboBoxModel()
getSelectedItem
public Object getSelectedItem()
- Returns the item that is currently selected in a JComboBox
- Specified by:
- getSelectedItem in interface ComboBoxModel
- Returns:
- the object that is currently selected
setSelectedItem
public void setSelectedItem(Object item)
- Sets the item that is currently selected in a JComboBox
- Specified by:
- setSelectedItem in interface ComboBoxModel
- Parameters:
item
- the item that is currently selected