• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to capture keyboard event if component does not have focus question

 
Dan MacLeod
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way for a Java application to capture a keyboard event no matter what component has the focus? I need to capture the PrintScreen KEY_RELEASED event in my application but it's not specific to any one component.

thanks
 
Rob Camick
Ranch Hand
Posts: 2699
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use Key Bindings.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!