set selection on specific node of JTree
hi guys,
i have JTree and i just want to set the selection (give the selection) to the node X by press JButton, where X is one of my tree nodes.
the following link is sample for JTree if any one need it in his explanation.
http://www.java2s.com/Code/Java/Swing-JFC/SimpleSwingtreeTreescanbevastlymorecomplex.htm
by the way i used TreeNodeSelection, setSelectionPath, addSelectionPath but nothing worked :(
thanks

