SolveErrors
Swing / AWT / SWT

tree.setSelectionPath not working

15 views

I have a JTree and to that i have a button called "up" which when clicked moves the node up. I am doing this by deleting the node from its place and adding it one place higher. By doing so, the node highlight is obviously going. I want to add highlight and am using setSelectionPath to do so. But it is not working...