GC gc = new GC(this); int textHeight = gc.stringExtent("").y + VERTICAL_MARGIN; gc.dispose();
int textHeight = parent.getFontHeight() + VERTICAL_MARGIN;
void setHeaderHeight() {	GC gc = new GC(this);	int textHeight = gc.stringExtent("").y + VERTICAL_MARGIN; 	gc.dispose();		int imageHeight = getImageExtent().y + VERTICAL_MARGIN;			Rectangle bounds = getBounds();	bounds.height = Math.max(textHeight,imageHeight);	setBounds(bounds);	}