code: protected synchronized void internalComponentWasResized()
  	{
  		imageBuffer=null;
  
  		Border b = this.getBorder();
  		Insets inset = (b==null)?new Insets(1,1,1,1):b.getBorderInsets(this);
  		myTop = inset.top;
  		myLeft = inset.left;
  		myWidth = this.getWidth() - inset.left - inset.right;
  		myHeight = this.getHeight() - inset.top - inset.bottom;
  		
  		if (myWidth>0 && myHeight>0) componentWasResized(0, 0, myWidth, myHeight);
  	}
docs: Is called when the component is resized