Basic HTML version of Foils prepared July 10 1996

Foil 13 Applet Flow of Control

From Introductory Lectures on Java -- An Overview Mixing Code and Comments Trip to China and Icase Tutorial -- July 12-28 and June 10-13 96. by Geoffrey C. Fox


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.
See ColorBoxes examples with init and start.



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 Dec 14 1997