CloseTabPaneUI.java 文件源码

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

项目:iBioSim 作者:
@Override
public void componentRemoved(ContainerEvent e) {
    JTabbedPane tp = (JTabbedPane) e.getContainer();
    Component child = e.getChild();
    if (child instanceof UIResource) {
        return;
    }

    // NOTE 4/15/2002 (joutwate):
    // This fix is implemented using client properties since there is
    // currently no IndexPropertyChangeEvent. Once
    // IndexPropertyChangeEvents have been added this code should be
    // modified to use it.
    Integer indexObj = (Integer) tp.getClientProperty("__index_to_remove__");
    if (indexObj != null) {
        int index = indexObj.intValue();
        if (htmlViews != null && htmlViews.size() >= index) {
            htmlViews.removeElementAt(index);
        }
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号