if (width == 0) width = DEFAULT_WIDTH; if (height == 0) height = DEFAULT_HEIGHT;
if (width == 0) width = DEFAULT_COOLBAR_WIDTH; if (height == 0) height = DEFAULT_COOLBAR_HEIGHT;
public Point computeSize (int wHint, int hHint, boolean changed) {	checkWidget();	int width = 0, height = 0;	wrapItems((style & SWT.VERTICAL) != 0 ? hHint : wHint);	boolean flat = (style & SWT.FLAT) != 0;	for (int row = 0; row < items.length; row++) {		int rowWidth = 0, rowHeight = 0;		for (int i = 0; i < items[row].length; i++) {			CoolItem item = items[row][i];			rowWidth += item.preferredWidth;			rowHeight = Math.max(rowHeight, item.preferredHeight);		}		height += rowHeight;		if (!flat && row > 0) height += ROW_SPACING;		width = Math.max(width, rowWidth);	}	wrapItems(getWidth());	if (width == 0) width = DEFAULT_WIDTH;	if (height == 0) height = DEFAULT_HEIGHT;	if (wHint != SWT.DEFAULT) width = wHint;	if (hHint != SWT.DEFAULT) height = hHint;	Rectangle trim = computeTrim(0, 0, width, height);	return fixPoint(trim.width, trim.height);}