fiinal JTree tree=new JTree();
public void valueChanged( TreeSelectionEvent event )
if( event.getSource() == tree )
TreePath paths = tree.getSelectionPaths();
Observation: paths[i] prints both a single selected node/child node and multiple selection as well.
Question : how do i store the single selected nodes in an array for example.that is with a click on a node,that node selected is stored;the next selected node is added to the already stored one and so on and on and on.
is it possible to carryout this on multiple selection as well ?
Thanks for you patience and time.