Tag: actionperformed

What is ActionListener ActionEvent with Example?

July 17, 2014 · 3 min read
###### Every GUI component when interacted by the user (like by clicking over a button or pressing enter key in a text field etc.), the component generates an event. Handling the event and executing some method is known as event handling. Button generates an event known as ActionEvent and is handled by ActionListener interface

Java AWT Button Learn GUI 8 Steps

April 28, 2011 · 5 min read
The **java.awt** package comes with many GUI components of which **Button** is the most important and most frequently used. A button functionality (what for it is) can be known by its label like **OK** or **Cancel** etc. A mouse click on the button generates an action.