Basic HTML version of Foils prepared 6 Feb 99

Foil 27 Overriding the paint 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 AppletDemo Applet
Override the paint(...) method like this: import java.applet.Applet; import java.awt.Graphics; public class AppletDemo extends Applet { public void init() { /* insert code */ } public void start() { /* insert code */ } public void stop() { /* insert code */ } public void destroy() { /* insert code */ } public void paint( Graphics g ) { // insert code here } }



© 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