Java KeyboardFocusManager .clearGlobalFocusOwner ()
Syntax
KeyboardFocusManager.clearGlobalFocusOwner() has the following syntax.
public void clearGlobalFocusOwner()
Example
In the following code shows how to use KeyboardFocusManager.clearGlobalFocusOwner() method.
import java.awt.KeyboardFocusManager;
/* w w w. j ava 2 s . c o m*/
public class Main {
public static void main(String[] argv) throws Exception {
KeyboardFocusManager.getCurrentKeyboardFocusManager().clearGlobalFocusOwner();
}
}
Home »
Java Tutorial »
java.awt »
Java Tutorial »
java.awt »