8.24 Applets and Event Handling
8.6 Key Points
1. Applets are small Java programs that are transported from one computer system on the
network to another. They cannot be run independently but they need a web browser or
program called appletviewer to run on the system.
2. Applet class hierarchy is java->applet->Applet. So the applet class must extend to
package java.applet.Applet.
3. When applets are loaded a web browser automatically calls the methods init(),Start():
Stop() : Destroy():Paint(Graphics g): Update(Graphics g).
4. Java has introduced latest Java swing components with class hierarchy: java->applet-
>Applet->JApplet. In order to get better and ‘feel good’ features.
5. Applets cannot be run independently. They need to be embedded ...