Example Depot

Useful code samples
  • Home
  • Java
  • Contact
  • Blog
Java » Java packages » java.awt » Focus

Removing the Focus from the Application

COPY
KeyboardFocusManager.getCurrentKeyboardFocusManager().clearGlobalFocusOwner();

Related examples

Activating a Keystroke When Any Child Component Has Focus
Activating a Keystroke When Any Component in the Window Has Focus
Determining If a Focus Lost Is Temporary or Permanent
Determining the Opposite Component of a Focus Event
Determining Which Component or Window Has the Focus
Finding the Next Focusable Component
Listening to All Focus Changes Between Components in an Application
Modifying the Focus Traversal Order
Moving the Focus to the Next or Previous Focusable Component
Preventing a Component from Gaining the Focus
Preventing a Window from Gaining the Focus
Setting Focus Traversal Keys for the Entire Application
Setting Focus Traversal Keys in a Component
Setting the Initial Focused Component in a Window
Validating a JTextField When Permanently Losing the Focus

Post a comment

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image. Ignore spaces and be careful about upper and lower case.

Login | Terms of Use | Trademarks | Privacy Statement
Copyright © 2009 Example Depot. All Rights Reserved.