What interface is extended by AWT event listeners?

What interface is extended by AWT event listeners?

- The event listener represents the interface which is responsible to handle the events.
- The java.util.EventListener interface is extended by all the AWT event listeners.

Declaration of java.util.EventListener interface:
public interface EventListener.

Following are the AWT event listener interfaces:

EventListenerDescription
ActionListener.Used for receiving the action events.
ComponentListenerUsed for receiving the component events.
KeyListenerUsed for receiving the key events.
ItemListenerUsed for receiving the item events.
MouseListenerUsed for receiving the mouse events.
TextListenerUsed for receiving the text events.
WindowListenerUsed for receiving the window events.
AdjustmentListenerUsed for receiving the adjustment events.
ContainerListenerUsed for receiving the container events.
MouseMotionListenerUsed for receiving the mouse motion events.
FocusListenerUsed for receiving the focus events.
What is paint method? What should we put in paint method?
What is paint method? - The AWT uses a Callback mechanism for painting which is the same for heavyweight and lightweight components...
What is the purpose of repaint method? When should we use repaint method?
Purpose of repaint method - repaint() requests an erase and redraw (update) after a small time delay...
Use of update method. When is it invoked?
Use of update method - An update method is called on calling the repaint method...
Post your comment