java - Global key binding throughout the whole application to open chm file on ctrl+h -
I am trying to open a chm file in the Java program. Now when I hit Ctrl + h anywhere in the program, I want to open this CM file. I am using the follwing code to open the Chm file and it is working in the project to open the file Ctrl + h . Most methods of adding main bindings do this on a per-baseline basis So, you have to create binding for all your top-level windows, maybe even the dialogue, which will be very annoying. So you have to catch events in some central locations in the hijacked dispatch system. In the form of an argument with a logical listener, the first argument and the second appears to be. The listener should need notify all keystrokes in such a way that you insert them and inspect them whether they are Ctrl + h and Work accordingly.
public square test project {public static zero main (string [] args) {try {runtime.getRuntime (). Exec ("hh.exe path of chm file / abc.chm"); } Hold (Exception preceded by {System.out.println ("exceptioin is", pre;); }}}}
Comments
Post a Comment