title: Double buffered image example in Jpanel
body: <p>I would know if my implementation is correct for double buffered image.. because i note that tremble the borders of my image that i move in the screen ... It is normal??</p>
  
  <pre><code>public void paintComponent(Graphics g) {
      Image bufferimage= createImage(180,180);
      Graphics dbg= bufferimage.getGraphics();
  
      //clean the screen
      dbg.setColor(new Color(100,100,100));
      dbg.fillRect(0,0,getWidth(),getHeight());
  
      if (game_is_running) {
         // draw various type of object with drawImage
         for(int i=0; list[i]!=null; i++) {
             list[i].draw(dbg);
         }
         target.draw(dbg);
         I.draw(dbg);
      }
  
      //finally draw the image linked to graphics
      g.drawImage(bufferimage,0,0,this);
  }
  </code></pre>