Purpose of Event object

Explain the purpose of Event Object.

- The EventObject represents the events.

- The super class of all event classes is java.util.EventObject.

Syntax:
public EventObject(Object source)

public Object getSource(): Returns the object on which the event initially occurred.
public String toString(): Returns a String representation of this EventObject.
public int getID(): Returns the Integer value corresponding to the type of event.
What is an action event?
What is an action event? - An action event is a semantic event which indicates that a component-defined action occured...
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...
Post your comment