Microsoft SDK for Java

Control.getMousePosition

Retrieves the current position of the mouse in screen coordinates.

Syntax

public static final Point getMousePosition()

Return Value

Returns a Point object that contains the coordinates of the mouse pointer relative to the upper-left corner of the screen.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.