views:

154

answers:

4

I'm doing some Swing GUI work with Java, and I think my question is fairly straightforward; How does one set the position of the mouse?

+7  A: 

You need to use Robot

Matt
Great, thanks. That looks like exactly what I need.
byte
+1  A: 

Check out the Robot class.

camickr
A: 

Robot.mouseMove(x,y)

OscarRyz