Java Reference
In-Depth Information
creates occurrence
of windowAdapter()
class
addWindowListener()
method
brace to
end method
FIGURE 6-21
overrides
windowClosing()
method
Although a WindowListener is an interface, the code actually creates an
object — a WindowAdapter — which implements the interface.
Saving the Source Code
Because a large amount of code has been added to the Calculator coding
window, it is a good idea to save the contents, as shown in the following step.
To Save the Coding Window
1. Click the Save button on the Standard toolbar.
TextPad saves the source code in the same location on the Data Disk.
Using the System Clipboard
In most modern operating systems, the clipboard is a portion of temporary
memory reserved for user storage. In Microsoft Windows, that clipboard area
originally had the capability to store a single piece of string or numeric data for
cut, copy, and paste operations in a single document; today, the clipboard is a
storage location that can hold more than 20 pieces of data (including docu-
ments, images, and cell ranges in a spreadsheet) to be cut, copied, or pasted
across applications. Java's Clipboard class implements the system clipboard to
transfer data in and out of the clipboard.
 
Search WWH ::




Custom Search