HELP! * YELLOW=global GREY=local Global HTML version of Foils prepared 1 February 97

Foil 52 Applet Flow of Control

From Jan 22 Delivered Lecture for Course CPS616 -- Java Lecture 1 -- Overview CPS616 spring 1997 -- Jan 22 1997. by Nancy McCracken * See also color IMAGE
Secs 67.6
Each applet's flow of control goes through a sequence of standard methods:
  • public void init() {...}
  • executed once when applet is downloaded to the browser.
  • public void start(){...}
  • executed each time the browser window is entered.
  • public void paint(){...}
  • executed whenever you want to draw in the window.
  • public void stop(){...}
  • executed each time the browser window in exited.
  • public void destroy(){...}
  • executed just before the applet exits.
There are also standard methods repaint (), which calls update(), which blanks out the old drawing and calls paint.


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 Sun Feb 16 1997