标签: java swing keyboardfocusmanager
有没有办法在Swing应用程序中获取对当前KeyboardFocusManager的引用?
答案 0 :(得分:2)
您检查过KeyboardFocusManager.getCurrentKeyboardFocusManager()
KeyboardFocusManager.getCurrentKeyboardFocusManager()
返回调用线程上下文的当前KeyboardFocusManager实例。