ChoiceNameChoice
DescriptionThe Choice is a Component that provides a drop-down list of choices to choose from. Class Definition
public class java.awt.Choice extends java.awt.Component implements java.awt.ItemSelectable { // Constructors public Choice(); // Instance Methods public synchronized void add (String item); ConstructorsChoicepublic Choice()
Instance Methodsaddpublic synchronized void add (String item)
addItempublic synchronized void addItem (String item)
addItemListenerpublic void addItemListener (ItemListener l)
addNotifypublic void addNotify()
countItemspublic int countItems()
getItempublic String getItem (int index)
getItemCountpublic int getItemCount()
getSelectedIndexpublic int getSelectedIndex()
getSelectedItempublic synchronized String getSelectedItem()
getSelectedObjectspublic synchronized Object[] getSelectedObjects()
insertpublic synchronized void insert (String item, int index)
removepublic synchronized void remove (int position)
public synchronized void remove (String string)
removeAllpublic synchronized void removeAll()
removeItemListenerpublic void removeItemListener (ItemListener l)
selectpublic synchronized void select (int pos)
public synchronized void select (String str)
Protected Instance MethodsparamStringprotected String paramString()
processEventprotected void processEvent (AWTEvent e)
processItemEventprotected void processItemEvent (ItemEvent e)
See AlsoComponent, ItemSelectable, String |
|