June 2002
Beginner to intermediate
640 pages
14h 24m
English
Table 15-1 lists common events and their corresponding event properties. Table 15-2 lists common events and the first component in the class hierarchy to which each event maps. The first thing you may notice in Table 15-2 is that some components are missing, such as JFrame and, for that matter, Frame. Remember, though, that JFrame is a subclass of Frame, and that Frame is a subclass of Window. Thus, JFrame publishes window events through the Window's interface, WindowListener.
| Event | Listener Interface | Property |
|---|---|---|
| ActionEvent | ActionListener | actionPerformed |
| AdjustmentEvent | AdjustmentListener | adjustmentValueChanged |
| ComponentEvent | ComponentListener | componentHidden ... |
Read now
Unlock full access