ChoicePeer is an interface that defines the basis for choice components.
public abstract interface java.awt.peer.ChoicePeer extends java.awt.peer.ComponentPeer { // Interface Methods public abstract void add (String item, int index); public abstract void addItem (String item, int position); public abstract void remove (int index); public abstract void select (int position); }
Text of the entry to add.
Position in which to add the entry; position 0 is the first entry in the list.
Adds a new entry to the available choices at the designated position.
Text of the entry to add.
Position in which to add the entry; position 0 is the first entry in the list.
Adds a new entry to the available choices at the designated position.
Position of the item to remove.
Removes an entry at the given position.
Position to make selected entry.
Makes the given entry the selected one for the choice's peer.
ComponentPeer, String