Fifth International World Wide Web Conference
Basic Applet Methods
- Many methods available to set up display in assigned area
- Small subset are the mininum requirement for most applets
- init()
- the initializer method
- called once after applet is loaded
- used for environment setup or resource allocation
- start()
- the start method; used to start an applet running
- Called every time the referencing Web page is put into view
- Not called directly by the applet
- stop()
- the stop method; used to stop an applet from running; the companion to the
start() method
- Called whenever the referencing Web page goes out of view
- If not supplied, applet could continue running until browser or viewer
terminates
Java - An Introductory Language Tutorial
(E.A.Johnson)