1 | First, we initialize the buffer: int w = this.getSize().width; int h = this.getSize().height; Image buffer = createImage( w, h ); Graphics gOff = buffer.getGraphics(); |
2 | The rest of the program is the same except that now we must override update(...) |