124125126127128129130131
public void windowLostFocus(WindowEvent e) {} }); KeyProcessor mkl = new KeyProcessor(); KeyboardFocusManager.getCurrentKeyboardFocusManager().addKeyEventPostProcessor(mkl); }