Sets the current
KeyboardFocusManager
instance for the calling thread's context. If
null
is specified, then the current
KeyboardFocusManager
is replaced with a new instance of
DefaultKeyboardFocusManager
.
If a SecurityManager
is installed, the calling thread must be granted the AWTPermission
"replaceKeyboardFocusManager" in order to replace the the current KeyboardFocusManager
. If this permission is not granted, this method will throw a SecurityException
, and the current KeyboardFocusManager
will be unchanged.
KeyboardFocusManager.setDefaultFocusTraversalPolicy(FocusTraversalPolicy)