
II
8.10 Applets
135
In the main method (lines 125-130), the statement (line 126)
CustomerDetails cd = new CustomerDetails ();
creates an instance, cd, of the frame CustomerDetails. We then set the frame's title and size,
and make the frame visible.
8.10 Applets
In this section, we describe a simple applet, MultiplyApplet .java. This applet performs the
same function as the Multiply application in Chapter 1, namely, to output the product of two
integers supplied as parameters. In contrast to an application that is a standalone program, an
applet is invoked by a Web browser from a Web page. A Web page written in HTML ...