Example usage for java.awt KeyboardFocusManager setCurrentKeyboardFocusManager

List of usage examples for java.awt KeyboardFocusManager setCurrentKeyboardFocusManager

Introduction

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

Prototype

public static void setCurrentKeyboardFocusManager(KeyboardFocusManager newManager) throws SecurityException 

Source Link

Document

Sets the current KeyboardFocusManager instance for the calling thread's context.

Usage

From source file:org.executequery.ApplicationLauncher.java

private void applyKeyboardFocusManager() {

    try {//from  ww w.j av a2  s . c om

        KeyboardFocusManager.setCurrentKeyboardFocusManager(new CustomKeyboardFocusManager());

    } catch (SecurityException e) {
    }
}