Summary

Although applets are no longer the focus of Java development, they are still the element of Java technology that reaches the most people. There are applets on thousands of World Wide Web sites—more than 13.6 million Web pages contain an applet, according to the AltaVista search engine at http://www.altavista.com.

Because they are executed and displayed within Web pages, applets can use the graphics, user interface, and event structure provided by the Web browser. This capability provides the applet programmer with a lot of functionality without a lot of extra toil.

Today you learned the basics of applet creation, including the following things:

  • All applets are subclasses of the java.applet.Applet or javax.swing.JApplet class, which provide ...

Get Sams Teach Yourself Java 2 in 21 Days, Second 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.