Is there a way to get a reference to the current Keybo开发者_Python百科ardFocusManager in a Swing application?
Have you checked KeyboardFocusManager.getCurrentKeyboardFocusManager()
Returns the current KeyboardFocusManager instance for the calling thread's context.
精彩评论