Java Reference
In-Depth Information
1. Use the scroll down arrow in the top left frame of the main frame to display
the java.awt.event link. Click the java.awt.event link.
2. When the Package java.awt.event page is displayed in the lower-left frame, if
necessary, scroll down to display the Interfaces. Click the WindowListener
link in the list of Interfaces.
3. When the Interface WindowListener page is displayed (Figure 10-57a), read the
paragraph that describes the WindowListener interface. Select the header and
the first paragraph of text by dragging through them. Click Print on the File
menu. When the Print dialog box is displayed, click the Selection option button
and then click the Print button in the Print dialog box to print the selection.
4. Under the line, All Known Implementing Classes, click the WindowAdapter link.
5. When the Class WindowAdapter page is displayed (Figure 10-57b on the next
page), scroll down, if necessary, and read the three paragraphs that describe
the WindowAdapter class. Select the header and the first three paragraphs by
dragging through them. Click File on the menu bar and then click Print.
When the Print dialog box is displayed, click the Selection option button and
then click the Print button in the Print dialog box to print the selection.
6. Based on this reading, write a paragraph explaining the necessary conditions
for using the WindowAdapter class versus implementing the WindowListener
interface.
java.awt.event
link
WindowAdapter
link
WindowListener
link
FIGURE 10-57a
(continued)
 
Search WWH ::




Custom Search