Let’s consider several demonstration applets provided with the JDK. Each sample applet comes with its source code. Some programmers find it interesting to read this source code to learn new and exciting Java features.
The demonstration programs provided with the JDK are located in a directory called demo. For Windows, the default location of the JDK 6.0’s demo directory is
On UNIX/Linux/Mac OS X, the default location is the directory in which you install the JDK followed by jdk1.6.0/demo—for example,
For other platforms, there will be a similar directory (or folder) structure. This chapter assumes that the JDK is installed in C:\Program ...