PROP_EVENTS.add(PERMANENT_FOCUS_OWNER);
PROP_EVENTS.add(ACTIVE_WINDOW);
EventQueue.invokeLater(new Runnable() {
public void run() {
KeyboardFocusManager focusManager = KeyboardFocusManager.getCurrentKeyboardFocusManager();
focusManager.addPropertyChangeListener(SINGLETON);
}
});
Toolkit.getDefaultToolkit().addAWTEventListener(SINGLETON, AWTEvent.MOUSE_EVENT_MASK);
}