What is an action event?

What is an ActionEvent?

- An action event is a semantic event which indicates that a component-defined action occurred.

- The ActionListener interface gets this ActionEvent when the event occurs.

- Event like Button pressed is an action event.

- It is defined in 'java.awt.event' package.

- This event is generated when the button is clicked or the item of a list is double clicked.
Declaration of ActionEvent:
public class ActionEvent
extends AWTEvent
Different kinds of event listeners
Different kinds of event listeners - The different kinds of event listeners are: WindowEvent, ActionEvent, PaintEvent...
What is event adapter class? When should we use an event adapter class?
Event adapter class - Usually adapter classes ease the programmers by providing implementations of the listener interfaces instead of having to implement them...
What is the relationship between clipping and repainting?
Clipping and repainting - Clipping is the process of confining paint operations to a limited area or shape...
Post your comment