Event Class

Java provides an Event class and several methods for recognizing and processing Event objects. Look at its definition, paying particular attention to its target, id, key, x, y, and arg variables.

You may also find it useful to look at its position within the AWT and within the overall Java class hierarchy.