Java Applets

Applets are Java programs that execute within a Java-enabled web browser. Most of the graphical support required for an applet to execute is built in to the browser. The major implication for applet developers is that they don't need to worry about creating a frame for the applet to execute in.

Using the Appletviewer

Applets are launched Applets are launched by embedding the applet HTML tag in a web page and then viewing that page with a Java-enabled browser or the appletviewer that comes with the Java Development Kit (JDK).

For consistency and ease of illustration, all of the applets in this book are used in the following way:

appletviewer applet_name.html

In this syntax, applet_name.html is a minimal HTML file that can be used ...

Get Graphic Java™ 1.2, Volume I: AWT, Third 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.