Javatpoint Logo
Javatpoint Logo

Java AWT Choice

The object of Choice class is used to show popup menu of choices. Choice selected by user is shown on the top of a menu. It inherits Component class.

AWT Choice Class Declaration

Java AWT Choice Example

Output:

java awt choice example 1

Java AWT Choice Example with ActionListener

Output:

java awt choice example 2
Next TopicJava AWT List




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA