Component (JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { final ErrorTreeElement element = getElement(value); if (element != null) { final CustomizeColoredTreeCellRenderer leftSelfRenderer = element.getLeftSelfRenderer(); final CustomizeColoredTreeCellRenderer rightSelfRenderer = element.getRightSelfRenderer(); if (leftSelfRenderer != null || rightSelfRenderer != null) { myColoredTreeCellRenderer.setCurrentCallback(leftSelfRenderer); myRightCellRenderer.setCurrentCallback(rightSelfRenderer); return myWrapperRenderer.getTreeCellRendererComponent(tree, value, selected, expanded, leaf, row, hasFocus); } } return super.getTreeCellRendererComponent(tree, value, selected, expanded, leaf, row, hasFocus); }