Events usually emerge within a Java program through thehandleEventmethod included in the AWTComponentclass.If you look at the
handleEventimplementation, you will see that it is largely a switching function that directs events to some eleven convenience methods that handle particular kinds of events, such as action, mouseDown, or keyDown. Note, also, that the method simply does areturn falsefor all other events. Thus, the normal practice is for a Java program to override thehandleEventand convenience methods.