Java provides anEvent
class and several methods for recognizing and processingEvent
objects. Look at its definition, paying particular attention to itstarget
,id
,key
,x
,y
, andarg
variables.You may also find it useful to look at its position within the AWT and within the overall Java class hierarchy.