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 } } |