int x = pt.x; int y = pt.y; if (x < 0 || y < 0) error (SWT.ERROR_INVALID_ARGUMENT); Rectangle bounds = getBounds (); if (x > bounds.width || y > bounds.height) error (SWT.ERROR_INVALID_ARGUMENT);
if (point == null) error (SWT.ERROR_NULL_ARGUMENT); int x = point.x; int y = point.y;
public void setCursorLocation (Point pt) {	checkDevice ();	int x = pt.x;	int y = pt.y;	if (x < 0 || y < 0) error (SWT.ERROR_INVALID_ARGUMENT);	Rectangle bounds = getBounds ();	if (x > bounds.width || y > bounds.height) error (SWT.ERROR_INVALID_ARGUMENT);	OS.PhMoveCursorAbs (OS.PhInputGroup (0), x, y);	}