As evidenced by Figure 9-4, there are two types of AWT events: component events, which extend ComponentEvent, and semantic events, which extend AWTEvent. Table 9-5 lists the classes representing the two types of events.
|Semantic Events||Component Events|
Component events are fired when something specific happens to a component, for example: the mouse enters/exits the component or is pressed within it; the component gains or loses keyboard focus; the component is a window that is closing, etc. Component ...