Microsoft SDK for Java

ComboBox.getSelectedIndex

Retrieves the zero-based index of the currently selected item in the combo box.

Syntax

public final int getSelectedIndex()

Return Value

Returns the zero-based index of the currently selected item in a combo box. If no item is currently selected, the return value is -1.

See Also   setSelectedIndex

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