Fifth International World Wide Web Conference
Basic Applet Methods (cont.)
- Additional basic methods
- destroy()
- cleans up any resources held by the applet, including those allocated by
init()
- paint(Graphics g)
- used to "paint" a Graphics object into the allocated view area
- may happen only once for static area
- may happen many times for dynamic area
- Applet started via APPLET tag in HTML document
Java - An Introductory Language Tutorial
(E.A.Johnson)