Javatpoint Logo
Javatpoint Logo

Java AWT List

The object of List class represents a list of text items. By the help of list, user can choose either one item or multiple items. It inherits Component class.

AWT List class Declaration

Java AWT List Example

Output:

java awt list example 1

Java AWT List Example with ActionListener

Output:

java awt list example 2
Next TopicJava AWT Canvas




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA