protected void paintImage(Graphics g,int x,int y){
  if (bgImage != null) {
    do {
      int rc=bgImage.validate(null);
      if (rc == VolatileImage.IMAGE_RESTORED) {
        renderImage(bgImage.getWidth(),bgImage.getHeight(),getScalingHint());
      }
      g.drawImage(bgImage,x,y,null);
    }
 while (bgImage.contentsLost());
  }
}

protected void paintImage ( Graphics g , int x , int y ) { if ( bgImage != null ) { do { int rc = bgImage . validate ( null ) ; if ( rc == VolatileImage . IMAGE_RESTORED ) { renderImage ( bgImage . getWidth ( ) , bgImage . getHeight ( ) , getScalingHint ( ) ) ; } g . drawImage ( bgImage , x , y , null ) ; } while ( bgImage . contentsLost ( ) ) ; } }
paints the image at the specified location . this method assumes scaling has already been done , and simply paints the background image " as - is . "
