795: Mainline
You refer to instances of the JApplet class, or subclasses of
that class, as applets. An applet differs from an ordinary,
standalone program in several respects:
- Java creates an applet in response to requests issued by a web
browser, by calling the zero-argument applet-class constructor.
There is no role for a
main method.
- An applet has its size determined by the web browser in cooperation with
the HTML file that references the applet, as explained in
Chapter 44. There are no calls to
setSize or
show.
- An applet has no close button; hence, there are no
WindowAdapter subclass and no windowClosing method
in JApplet classes.