Example usage for Java java.awt Choice fields, constructors, methods, implement or subclass
The text is from its open source code.
Choice() Creates a new choice menu. |
void | add(String item) Adds an item to this Choice menu. |
void | addItem(String item) Obsolete as of Java 2 platform v1.1. |
void | addItemListener(ItemListener l) Adds the specified item listener to receive item events from this Choice menu. |
String | getSelectedItem() Gets a representation of the current choice as a string. |
void | removeAll() Removes all items from the choice menu. |
void | setEnabled(boolean b) Enables or disables this component, depending on the value of the parameter b . |