Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

bring front of other application when key pressed  RSS feed

 
Madhusudan Banik
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, i want to bring front my application get focused when certain key pressed (let F10 ). For example, i started my application then windows media player, my application lost focused. Now if i press F10, i want my application get focused. Any idea will be appreciated.
 
Rob Camick
Ranch Hand
Posts: 2752
11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't do this in Java. This is OS dependent functionality.

Java can only respond to events received when the application has focus.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!