I am refreshing the data in a tree and attempting to re-selectt the node(path) that the user had selected before refreshing. I only refresh node which are leafs. My refresh logic will remove all child nodes from a particular node and then re-add the children (there may be more or less children). The problem is if the user has one of those child nodes selected. I want to reselect that node after the refresh. I thought I could get the selected path before the refresh and then reselect the path after the refresh. Here is the code snippet of my refresh method: // Get the selected path TreePath currentSelection = m_tree.getSelectionPath(); // .... refresh logic which may remove and re-add the selected node // ....At this point the tree should be refreshed // Re-select the node which the user had selected before the refresh m_tree.setSelectionPath(currentSelection); // Note: The above code actually works, but I do not see the graphical selection of the node....it looks like nothing is selected even thgough I can do a getSelectionPath() and it tells me the corrent node is selected. Thank you. -Lenny _______________________________________________ Advanced-swing mailing list [EMAIL PROTECTED] http://eos.dk/mailman/listinfo/advanced-swing
