Overview | Methods | Fields | This Package | All Packages
Retrieves the currently selected item in the list.
Syntax
public final Object getSelectedItem()
Return Value
Returns an object that represents the current selection in a single-selection list box. Returns an object that represents the first selected item in a multiple-selection list box. If no item is currently selected, returns null. To retrieve an array containing the all the selected items in a multiple-selection list box, use the getSelectedItems method.
See Also setSelectedItem