HELP! * GREY=local LOCAL HTML version of Foils prepared 29 January 1996

Foil 71 Some Basic Methods for Applets -- I

From CPS616 Lectures on Java CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. by Geoffrey C. Fox * See also color IMAGE

Some of These are in Applet and some in parent (in particular Component)
public void init() is called ONCE and ONCE only when the applet is loaded or reloaded. Set initial parameters etc. here.
public void destroy() is what you do when Applet is entirely finished and you need to clean up stray threads or connections to be closed.
public void start() is called whenever the applet is started which can happen several times during an applet's life-cycle as it starts each time you revisit a page
public void stop() is called when we temporarily leave Applet to visit another page. A wise move would be to suspend running of Threads to save system resources.



Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Tue Feb 18 1997