Predefined Applet Methods
init()
- Called once by the Appletviewer or browser when the applet is loaded for execution.
start()
- Called after init, and when the browser returns to the page where the applet resides.
paint(Graphics g)
- Called after init completes and start has begun, to draw the applet. Also called automatically when the applet is covered by another window and then uncovered, or by repaint() when invoked.
stop()
- Called when the applet should stop executing. When the browser leaves the page.
destroy()
- Called when the applet is removed from memory.