checkWidget (); int width = 0, height = 0; if (wHint == SWT.DEFAULT) {
Point size = super.computeSize (wHint, hHint, changed); if (wHint == SWT.DEFAULT && items.length > 0) { int width = 0;
public Point computeSize (int wHint, int hHint, boolean changed) {	checkWidget ();	int width = 0, height = 0;	if (wHint == SWT.DEFAULT) {		GC gc = new GC (this);		for (int i = 0; i < items.length; i++) {			if (items [i] != null) {				width += items [i].calculateWidth (gc);			}		}		gc.dispose ();	}	Point size;	if (layout != null) {		size = layout.computeSize (this, wHint, hHint, changed);	} else {		size = minimumSize (wHint, hHint, changed);	}	if (size.x == 0) size.x = DEFAULT_WIDTH;	if (size.y == 0) size.y = DEFAULT_HEIGHT;	if (wHint != SWT.DEFAULT) size.x = wHint;	if (hHint != SWT.DEFAULT) size.y = hHint;	width = Math.max (width, size.x);	height = Math.max (height, size.y);	Rectangle trim = computeTrim (0, 0, width, height);	width = trim.width;  height = trim.height;	return new Point (width, height);}