public void paintComponent(Graphics g){
  if (image == null || image.getWidth(null) != getWidth() || image.getHeight(null) != getHeight()) {
    isImageUpToDate=false;
  }
  if (!isImageUpToDate)   updateOffScreenImage();
  g.drawImage(image,0,0,this);
}

public void paintComponent ( Graphics g ) { if ( image == null || image . getWidth ( null ) != getWidth ( ) || image . getHeight ( null ) != getHeight ( ) ) { isImageUpToDate = false ; } if ( ! isImageUpToDate ) updateOffScreenImage ( ) ; g . drawImage ( image , 0 , 0 , this ) ; }
shows a graphical representation of the provided map data .
