/** * Adds a language listener. The listener will get notified when the language of * the keyboard changes (via Alt-Shift on Win platforms). Do this by creating a * window proc for the Control so that the window messages for the Control can be * monitored. * <p> * * @param hwnd the handle of the Control that is listening for keyboard language * changes * @param runnable the code that should be executed when a keyboard language change * occurs */ public static void addLanguageListener (int /*long*/ hwnd, Runnable runnable) { languageMap.put(new LONG(hwnd), runnable); subclass(hwnd); } public static void addLanguageListener (Control control, Runnable runnable) {