Cursor.setPosition

Overview | Methods | Fields | This Package | All Packages

Cursor.setPosition

Moves the cursor to the specified position (in screen coordinates).

Syntax

public final static void setPosition( Point p )

Parameters

p

A Point object that specifies the x and y coordinates of the desired cursor position.

Remarks

If the specified coordinates are not within the screen rectangle set by the most recent call to setClip, Windows automatically adjusts the coordinates so that the cursor stays within its clipping rectangle.

See Also   getPosition