StagingPanel.java 文件源码

java
阅读 20 收藏 0 点赞 0 评论 0

项目:oxygen-git-plugin 作者:
/**
 * Adds a focus listener on the component and its descendents.
 * 
 * @param c
 *          The component.
 * @param focusListener
 *          Focus Listener.
 */
private void installFocusListener(Component c, FocusListener focusListener) {
    c.addFocusListener(focusListener);

    if (c instanceof Container) {
        Container container = (Container) c;
        int componentCount = container.getComponentCount();
        for (int i = 0; i < componentCount; i++) {
            Component child = container.getComponent(i);
            installFocusListener(child, focusListener);
        }
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号