The Applet Class

As mentioned, all applets are subclasses of the Applet class. Applet inherits the following superclasses defined by the AWT: Component, Container, and Panel. Thus, an applet has access to the full functionality of the AWT.

In addition to the methods described in the preceding sections, Applet contains several others that give you detailed control over the execution of your applet. All of the methods defined by Applet are shown in Table 14-1.

Image

Image

Table 14-1 The Methods Defined by Applet

Get Java, A Beginner's Guide, 5th Edition, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.