AWT Event Classes
In AWT, all the events have corresponding event classes associated with them. Each of these classes is derived from one single superclass, such as EventObject – It is contained in the java.util package. The EventObject class contains two important methods for Event handling:
getSource() : It simply returns the event source.
toString() : It returns a string containing information about the event source.