From Java Academy II:Advanced Java NPAC/ECS Java Academy -- February to April 98. byTom Scavo
First, we initialize the buffer: int w = this.getSize().width; int h = this.getSize().height; Image buffer = createImage( w, h ); Graphics gOff = buffer.getGraphics();
The rest of the program is the same except that now we must override update(...)