ListBox.getSelectedItems

Overview | Methods | Fields | This Package | All Packages

ListBox.getSelectedItems

Retrieves an array containing all selected items in a list box.

Syntax

public final Object[] getSelectedItems()

Return Value

Returns an object array containing all the currently selected items. In a single-selection list box, returns an array containing a single element. If there are no selected items in the list box, returns an empty array.