Basic HTML version of Foils prepared
18 May 97
Foil 32 Applet Flow of Control
From
Java Tutorial - Spring 1997 Part II: Java Language and Object-Oriented Concepts Peking Tutorial, Web Certificate --
Spring-Summer 1997
.
by
Nancy J. McCracken,Geoffrey C. Fox
1
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 or when browser needs to refresh window.
public void stop(){ . . . }
executed each time the browser window in exited.
public void destroy(){ . . . }
executed just before the applet exits.
2
There are also standard methods repaint (), which calls update(), which blanks out the old drawing and calls paint.
in Table To:
©
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 Thu Jan 8 1998