Javatpoint Logo
Javatpoint Logo

Java AWT Button

The button class is used to create a labeled button that has platform independent implementation. The application result in some action when the button is pushed.

AWT Button Class declaration

Java AWT Button Example

Output:

java awt button example 1

Java AWT Button Example with ActionListener

Output:

java awt button example 2
Next TopicJava AWT Label




Help Others, Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA