List of usage examples for java.awt KeyboardFocusManager addKeyEventPostProcessor
public void addKeyEventPostProcessor(KeyEventPostProcessor processor)
From source file:pl.otros.logview.gui.LogViewMainFrame.java
private void initGlobalHotKeys() { KeyboardFocusManager manager = KeyboardFocusManager.getCurrentKeyboardFocusManager(); manager.addKeyEventPostProcessor(new KeyboardTabSwitcher(logsTabbedPane)); manager.addKeyEventPostProcessor(/* w w w. j a v a2 s. co m*/ new FocusComponentOnHotKey(searchField, KeyEvent.VK_F, KeyEvent.META_MASK)); }