Applets

Applications aren't the only kind of Java programs that can make use of the JFC. Applets—Java programs that run in the context of a Web browser—can also benefit from the JFC APIs. In fact, applets are intimately connected to the JFC, by virtue of inheriting capabilities from important JFC classes.

What Is an Applet?

An applet is a Java program that runs in the context of a Web browser. At various times, the Web browser calls certain applet methods to perform applet-specific tasks, and these methods respond appropriately.

The Web browser reserves a rectangular portion of its main window as a display area for each applet that requires a place in which to draw its output. The Web browser also arranges for an applet to receive input from ...

Get Special Edition Using Java 2 Standard 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.