   [java] Double buffer
  In the second example from the sticky FAQ there isGraphics g = backBuffer.getDrawGraphics();Problem is Image has no such method getDrawGraphics .So I used getGraphics :public void paint(Graphics g){if (buffer==null) return;Graphics gb=buffer.getGraphics();gb.drawRect(0, 0, 100, 100);g.drawImage(buffer, 0, 0, null);}But it doesn't show anything .   
  Yes you're right; must be a typo. "getDrawGraphics()" is a method from the BufferStrategy class, so in this case getGraphics() is the correct method to use.Have you checked that buffer is correctly instantiated, not null, correct sizes.Also are you using active rendering, or repaint(). Maybe your paint method never gets invoked?   ;  Hey, I've had the same problem before. Is the paint method painting directly to the screen? Is repaint() called by AWT/Swing or are you working with active rendering? Make sure AWT/Swing is invoking repaint(). Also try invoking the flush() method, so all the graphics will be flushed to the screen. Hope this will help!I think it's because you don't close the backbuffer's graphics. Call gb.dispose().   ;  When I was using java, I simply used setDoubleBuffered(true);