by Dinesh Thakur

The AWT allows us to use various graphical components. When we start writing any applet program we essentially import two packages namely - java.awt and java.applet.

The java.applet package contains a class Applet which uses various interfaces such as AppletContext, AppletStub and AudioCIip. The applet class is an extension of Panel class belonging to java.awt package.

To create an user friendly graphical interface we need to place various components on GUI window. There is a Component class from java.awt package which derives several classes for components. These classed include Check box, Choice, List, buttons and so on. The Component class in java.awt is an abstract class.

The class hierarchy for Applets is as shown in Fig.

                       Applet class hierarchy