How to change the fontcolor of a DefaultMutableTreeNode on click of it?
I am having a JTree which is dynamically generated ,
I want to set the foreground color of a node when i click it and the foreground color should be maintained permanently even if i click the next node, The idea is this the color of all the clicked nodes should be the same.
And If I click the next node the color should change to default color?
Please help me

