获取对当前KeyboardFocusManager的引用

时间:2010-12-20 19:38:49

标签: java swing keyboardfocusmanager

有没有办法在Swing应用程序中获取对当前KeyboardFocusManager的引用?

1 个答案:

答案 0 :(得分:2)

您检查过KeyboardFocusManager.getCurrentKeyboardFocusManager()

  

返回调用线程上下文的当前KeyboardFocusManager实例。