Basic HTML version of Foils prepared 13 July 98

Foil 84 The update Method

From Java Academy II:Advanced Java NPAC/ECS Java Academy -- February to April 98. by Tom Scavo

The MovingPolygons2 Applet
All drawing takes place in the buffer: public void update( Graphics g ) { gOff.setColor( getBackground() ); gOff.fillRect( 0, 0, w, h ); paint( gOff ); g.drawImage( buffer, 0, 0, this ); }
The buffer is copied to the applet window as a last step



© 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 Nov 28 1998