Hi everybody,
How to do the following in java..??
created a frame and one button added to that frame and set the keyboard shortcut to that button.Now my question is how to make that keyboard shortcut will work eventhough focus is not there in that frame? anyone have any idea..

I'm not sure that's even possible in Java.

I agree with stultuske. To do that, one needs to override the system (OS) keyboard short-cut. There are different OS with different short-cut... Also, don't think any OS would simply leave the access for an external program.