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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.