How to move the mouse by code

how i can move the mouse by code in to the center of the display (window) like in 3d games where it uses for rotate the camera (i know inglish very well)

You need to use the java robot class: (Docs.oracle.com)