• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to catch the mouse pointer?  RSS feed

 
Mantu Tippimath
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have problem where I have to catch the mouse pointer & the same has to be mapped to the keyboard.
In this problem I have to use the keyboard up/down, left/right arrows for moving the mouse pointer on my application GUI.
Your help will be appreciated.
 
Eddie Vanda
Ranch Hand
Posts: 283
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mantu,

You could check out the Robot class, the main problem I see with that is that you can't get the mouse position so you would need to track that in between key strokes.

Ed
 
Mantu Tippimath
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ed,

Thanks for the reply but whhat is that Robot class you are talking about...Could you please tell me what is that?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!