Basic HTML version of Foils prepared 6 Feb 99

Foil 29 The update Method

From Java Academy I:Elementary Java NPAC/ECS Java Academy -- February to April 1998 and 1999. by Nancy McCracken (foils by Tom Scavo)

The java.awt.Container.update Method
1 All of the methods in the previous diagram are called automatically by the Java VM
2 What if the programmer wants to repaint the applet explicitly?
3 In that case, call the update(...) method: public void update( Graphics g );
4 The update(...) method simply clears the applet window 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 Sat Feb 6 1999