protected void resize( int width, int height ) {
		if( width==fWidth && height==fHeight )
			return;

		fWidth = width;
		fHeight= height;

		MutableAttributeSet attr = new SimpleAttributeSet();
		attr.addAttribute(HTML.Attribute.WIDTH ,Integer.toString(width));
		attr.addAttribute(HTML.Attribute.HEIGHT,Integer.toString(height));
		((StyledDocument)getDocument()).setCharacterAttributes(
				fElement.getStartOffset(),
				fElement.getEndOffset(),
				attr, false);
	}