Two Types of Applets
It is
important to state at the outset that there are two varieties of applets based
on Applet. The first are those based
directly on the Applet class
described in this chapter. These applets use the Abstract Window Toolkit (AWT)
to provide the graphical user interface (or use no GUI at all). This style of
applet has been available since Java was first created.
The
second type of applets are those based on the Swing class JApplet, which inherits Applet.
Swing applets use the Swing classes to provide the GUI. Swing offers a richer
and often easier-to-use user
interface than does the AWT. Thus, Swing-based applets are now the most
popular. However, traditional AWT-based applets are still used, especially when
only a very simple user interface is required. Thus, both AWT- and Swing-based
applets are valid.
Related Topics
Privacy Policy, Terms and Conditions, DMCA Policy and Compliant
Copyright © 2018-2023 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.