Component (JTree tree1, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { JComponent result = (JComponent)myBaseRenderer.getTreeCellRendererComponent(tree1, value, selected, expanded, leaf, row, hasFocus); result.setOpaque(!selected); return result; }