int width = rect.right - rect.left; int height = rect.bottom - rect.top; return new Rectangle (rect.left, rect.top, width, height);
Point size = getSize  (); return new Rectangle (rect.left, rect.top, size.x, size.y);
public Rectangle getBounds () {	checkWidget ();	int index = parent.indexOf (this);	if (index == -1) return new Rectangle (0, 0, 0, 0);	int hwnd = parent.handle;	RECT rect = new RECT ();	OS.SendMessage (hwnd, OS.RB_GETRECT, index, rect);	int width = rect.right - rect.left;	int height = rect.bottom - rect.top;	return new Rectangle (rect.left, rect.top, width, height);}