Microsoft SDK for Java

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.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.