Convert GraphicsDevice to JFrame

Hi everyone, i have some problem
How can i convert GraphicsDevice’s size to my JFrame’s size when i using Robot to call mousemove() method?
Because i want my mouse moves to the position in JFrame’s screen, not in Window’s screen.
Thanks.