Highlighting a node in Jtree

i have a jtree with a list of nodes. when i select a perticular value from a combo box i want the same string value to get highlighted in the jtree. i don't know the row number or the path.
can anyone help me pls

thank you
danushka_lAsked:
Who is Participating?
 
objectsConnect With a Mentor Commented:
you'll need to iterate thru the tree to find the node u want to hilite
0
 
hoomanvCommented:
Each item of ComboBox should know which row/node it is related to
Then use jTree.setSelectionRow(row)
0
All Courses

From novice to tech pro — start learning today.