Hi, I am wondering how to regenerate the TreeSelectionListener 's valueChanged() event when clicking on a tree leaf node which is already been click previously. I am having trouble to show a same frame after it is closed. I have to collapse and expand the tree so a new TreeSelectionEvent can be genereated. Can someone give some suggestion? Thanks.
valueChanged() only gets called when the node selection changes... if you click on a node that is already selected, the selection doesn't change. I would suggest that you use a MouseListener instead, or in addition to, your TreeSelectionListener to detect every time a node is clicked.
Write once, run anywhere, because there's nowhere to hide! - /. A.C.