13.6. The Applet Class

An Applet is most commonly used for Java programs embedded in Web pages. Technically, you could use an Applet in a Java application, but a better approach is to simply use a Panel instead, since an Applet inherits from Panel. The layout manager for an Applet is unchanged from the parent Panel class—FlowLayout. For more details on using an Applet, see Chapter 9 (Applets and Basic Graphics).

Get Core Web Programming, 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.