JTreeTable.java 文件源码

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

项目:incubator-taverna-workbench 作者:
/**
 * updateUI is overridden to set the colors of the Tree's renderer to
 * match that of the table.
 */
public void updateUI() {
    super.updateUI();
    // Make the tree's cell renderer use the table's cell selection
    // colors.
    TreeCellRenderer tcr = getCellRenderer();
    if (tcr instanceof DefaultTreeCellRenderer) {
        //DefaultTreeCellRenderer dtcr = ((DefaultTreeCellRenderer) tcr);
        // For 1.1 uncomment this, 1.2 has a bug that will cause an
        // exception to be thrown if the border selection color is
        // null.
        // dtcr.setBorderSelectionColor(null);
        // dtcr.setTextSelectionColor(UIManager.getColor
        // ("Table.selectionForeground"));
        // dtcr.setBackgroundSelectionColor(UIManager.getColor
        // ("Table.selectionBackground"));
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号