Microsoft SDK for Java

ComboBox.getSelectedItem

Retrieves the currently selected item in the combo box.

Syntax

public final Object getSelectedItem()

Return Value

Returns an object that represents the current selection in a combo box. Returns null if no item is currently selected or if the combo box style property is ComboBoxStyle.SIMPLE.

See Also   setSelectedItem

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