protected void paintImage(Graphics2D g,int x,int y,int w,int h){
  BufferedImage image=getImage();
  if (image != null)   g.drawImage(image,x,y,w,h,this);
 else {
    Color c=g.getColor();
    g.setColor(Color.WHITE);
    g.fillRect(x,y,w,h);
    g.setColor(c);
  }
}

protected void paintImage ( Graphics2D g , int x , int y , int w , int h ) { BufferedImage image = getImage ( ) ; if ( image != null ) g . drawImage ( image , x , y , w , h , this ) ; else { Color c = g . getColor ( ) ; g . setColor ( Color . WHITE ) ; g . fillRect ( x , y , w , h ) ; g . setColor ( c ) ; } }
paints the background image for this component , or fills the background with a color if no image present .
