This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

bring front of other application when key pressed

 
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: 2583
9
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic