All About INTERFACE ChoicePeer in AWT in Java

The ChoicePeer Interface specifies the methods that all implementations of Abstract Window Toolkit must define while working with Choice.
The structure of interface ChoicePeer is given as:

public interface java.awt.peer.ChoicePeer extends java.awt.peer.ComponentPeer{
//Methods
public abstract void addItem(String item,int index);
//adds an item to the choice menu at the specified index position.
public abstract void select(int index);
//sets the selected position item to be the item at the specified position.
}
 
All About INTERFACE ChoicePeer in AWT in Java All About INTERFACE ChoicePeer in AWT in Java Reviewed by Animesh Chatterjee on November 01, 2018 Rating: 5

No comments:

Powered by Blogger.