Choice.select

Choice.select

Class Overview | Class Members | This Package | All Packages

Syntax 1
public synchronized void select( int pos )
Parameters
pos
the positon of the selected item.
Description
Sets the selected item in this Choice menu to be the item at the specified position.

Exceptions
IllegalArgumentException if the specified position is invalid.
See Also
getSelectedItem, getSelectedIndex



Syntax 2
public synchronized void select( String str )
Parameters
str
the specified string
Description
Sets the selected item in this Choice menu to be the item whose name is equal to the specified string. If more than one item matches (is equal to) the specified string, the one with the smallest index is selected.

See Also
getSelectedItem, getSelectedIndex