How to change color of selected node in JTree?
This example show you how to change the color of the selected node of the
JTree component. It shows you how to set the node background color, the font color and the selected node border color.
To do this you need to obtain the
DefaultTreeCellRenderer object from the
JTree instance and modified the selection color of the node.