Hi, I am facing a problem as described below:
A new node is added to JTree and then I am sorting the nodes. After sorting completes, I want the newly added node should be highlighted. I used parent path of the new added node and called jtree.scrollPathToVisible(parentPath); jtree.setSelectionPath(parentPath);. but its not working. Please help
A new node is added to JTree and then I am sorting the nodes. After sorting completes, I want the newly added node should be highlighted. I used parent path of the new added node and called jtree.scrollPathToVisible(parentPath); jtree.setSelectionPath(parentPath);. but its not working. Please help