Cover Page by Budi Kurniawan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

O'Reilly logo

Chapter 20

Applets

An applet is small a Java program that runs inside another application, usually a web browser or an applet viewer. The JDK includes an applet viewer to help you test your applets. However, most of the time your applets will run inside a Web browser.

This chapter starts with a brief history of applets and by introducing the java.applet.Applet class. However, don't use Applet directly. Instead, use a Java Swing class named javax.swing.JApplet. JApplet is a subclass of Applet and is more powerful than its parent.

A Brief History of Applets

A couple of years after Java 1.0 was launched in 1995, applets dominated the World Wide Web's dynamic content arena. People used applets to achieve what server technologies are good for today ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required