KeyboardFocusManager.clearGlobalFocusOwner() has the following syntax.
public void clearGlobalFocusOwner()
In the following code shows how to use KeyboardFocusManager.clearGlobalFocusOwner() method.
import java.awt.KeyboardFocusManager; public class Main { public static void main(String[] argv) throws Exception { KeyboardFocusManager.getCurrentKeyboardFocusManager().clearGlobalFocusOwner(); } }