@Override public void update(final Graphics g) { final Dimension d = getSize(); offGraphics = new RasterPlotter(d.width, d.height, RasterPlotter.DrawMode.MODE_REPLACE, "FFFFFF"); paintFrame(offGraphics); g.drawImage(offGraphics.getImage(), 0, 0, null); }
@Override public void paint(final Graphics g) { if (offGraphics != null) { g.drawImage(offGraphics.getImage(), 0, 0, null); } }