Example usage for java.awt KeyboardFocusManager addKeyEventPostProcessor

List of usage examples for java.awt KeyboardFocusManager addKeyEventPostProcessor

Introduction

In this page you can find the example usage for java.awt KeyboardFocusManager addKeyEventPostProcessor.

Prototype

public void addKeyEventPostProcessor(KeyEventPostProcessor processor) 

Source Link

Document

Adds a KeyEventPostProcessor to this KeyboardFocusManager's post- processor chain.

Usage

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));
}