Creating a keyboard hook for a Java program that sits in the System Tray
问题 Basically I have a java program that runs in the system tray and would like to add make it so if the user pressed say CTRL+SHIFT+1 it selects one of the right click options of the java program that sits in the tray. I guess what I'm looking for is a tutorial on doing this, or what the simplest approach would be. I have never done something like this before, so possibly some sort of noobie tutorial? Thanks 回答1: so , creating a keyboard hook isn't as easy as it looks , java doesn't provide a