Robot class and obtaining mouse position

The Robot class has the mouseMove(int x, int y) method which allows you to position the mouse at the given x-y coordinates. I am trying to move the mouse using relative coordinates, i.e. move 200 pixels left, as opposed to moving to 400,800. Is there a way to obtain my cursor's current position? I've looked at the MouseEvent class, and I'm not very sure that would work, as it requires input from the mouse in order to trigger.

[439 byte] By [CSnipsa] at [2007-11-27 10:56:59]
# 1

TryPointerInfo pointerInfo = MouseInfo.getPointerInfo();

Point p = pointerInfo.getLocation();

dwga at 2007-7-29 12:06:13 > top of Java-index,Java Essentials,New To Java...
# 2

That is exactly what I needed. Thanks.

CSnipsa at 2007-7-29 12:06:13 > top of Java-index,Java Essentials,New To Java...