Java API support for Applets
Java includes many libraries (known as packages) and classes, commonly known as Java API. java.applet is a small package used to develop applets. Following are the classes and interfaces of "java.applet" package.
- AppletContext: Used by the programmer to communicate with the execution environment of an applet. This is required to communicate between two applets.
- AppletStub: Used to develop custom applet viewers. Programmer can utilize this interface to communicate between applet and the browser environment
- AudioClip: Used to play audio clips. It comes with methods like play(), loop() and stop().
- Applet: This class should be extended by our applet program. Applet is a class inherited from Panel of java.awt package.
Following is the hierarchy of Applet class.