Using Applets

Applets are yet another alternative for developing Web components. One of the major advantages of applets is that the deployment process is greatly simplified. The applet application is deployed automatically and does not reside on the user's machine. When an applet is run, it operates within a container. Just as with servlet and EJB containers, this container manages the specifics of the operating system and creates a consistent environment for the applet. (In fact, the applet container was the first Java operating environment container—servlets and EJBs came later.) (See Figure 31-4.)

Figure 31-4. The applet container.

This container ...

Get J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software 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.