Different kinds of event listeners

Explain the different kinds of event listeners.

The different kinds of event listeners are:

Event listener interfaceDescription
WindowEventThis interface is used for receiving the window events.
ActionEventThis interface is used for receiving the action events.
ComponentEventThis interface is used for receiving the component events.
ContainerEventThis interface is used for receiving the container events.
FocusEventThis interface is used for receiving the focus events.
ItemEventThis interface is used for receiving the item events.
KeyEventThis interface is used for receiving the key events.
MouseEventThis interface is used for receiving the mouse events.
TextEventThis interface is used for receiving the text events.
AdjustmentEventThis interface is used for receiving the adjustment events.
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...
What is the relationship between an event-listener interface and an event-adapter class?
Event-listener interface and an event-adapter class - When you declare to implement an event listener, then you should write the definitions of all the methods that have been declared in the interface...
Post your comment