Rectangle clientArea = super.getClientArea(); clientArea.x = xClient; clientArea.y = yClient; clientArea.width -= 2*marginWidth + borderLeft + borderRight; clientArea.height -= 2*marginHeight + borderTop + borderBottom + getTabHeight() + 1; return clientArea;
Point size = getSize(); if (items.length == 0) { if (!showBorders) return super.getClientArea(); int width = size.x - borderRight - 2; int height = size.y - borderBottom - 2; return new Rectangle(borderRight + 1, borderBottom + 1, width, height); } else { int width = size.x - 2*marginWidth - borderLeft - borderRight; int height = size.y - 2*marginHeight - borderTop - borderBottom - getTabHeight() - 1; return new Rectangle(xClient, yClient, width, height); }
public Rectangle getClientArea() {	checkWidget();	Rectangle clientArea = super.getClientArea();	clientArea.x = xClient;	clientArea.y = yClient;	clientArea.width -= 2*marginWidth + borderLeft + borderRight;	clientArea.height -= 2*marginHeight + borderTop + borderBottom + getTabHeight() + 1;	return clientArea;}