public void setCursorLocation (int x, int y) { checkDevice();
public void setCursorLocation (Point pt) { checkDevice (); int x = pt.x; int y = pt.y;
public void setCursorLocation (int x, int y) {	checkDevice();	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);	int xWindow = OS.XDefaultRootWindow (xDisplay);		OS.XWarpPointer (xDisplay, OS.None, xWindow, 0, 0, 0, 0, x, y);}