Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Moving the cursor using the key combinations  RSS feed

 
Vijay Daniel
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I like to move the mouse curson on a JPanel according to the key combinations.

i.e In short the mouse cursor should be positioned on the borders(four borders) of the JPanel when i pressed the keys(shift+up , shift+down, shift+left , shift+right) correspondingly.

Can anyone suggest me to achieve this.

With Regards
Vijay
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See the last two paragraphs in the comments section of the Robot api about its use.
 
Vijay Daniel
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Craig,

That was a good thing to learn.
Thanks for guiding me.

With Regards
Vijay
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!