The whole Java 1.0 event-handling architecture is deprecated in Java 1.1 and beyond. In this section, I'll give an outline of the Java 1.0 style of event handling. But you can't mix them in the same applet or program . For a given project, you have to decide which model you want to use and stick to it. In Java 1.0 there is just one class of events, java.awt.Event .
Every event is generated by a component, which is called the target of the event.
The target of an event object, evt , is given by the public instance variable evt.target . Other instance variables carry other information about various types of events. For example, the coordinates of a mouse-related event are given by evt.x and evt.y . In Java 1.1 style event handling, an event is sent only to objects that are listening for the event. Some of these event-handling routines are discussed below.