标签: java swing user-interface jframe jcomponent
在复杂的Java组件层次结构中,如何在父组件上添加JFrame.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT的KeyBinding中查明某个组件是否被覆盖?为什么用JComponent.WHEN_IN_FOCUSED_WINDOW添加所有KeyBinding是不好的做法?
JFrame.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT
JComponent.WHEN_IN_FOCUSED_WINDOW