Microsoft SDK for Java

ComboBox.getSelectedText

Retrieves the text that is selected in the edit control of the combo box.

Syntax

public final String getSelectedText()

Return Value

Returns the text that is selected in the edit control of the combo box. If the combo box has a static text control instead of an edit control, or if no text is selected in the edit control, this method returns an empty string.

See Also   setSelectedText

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