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
Who is Participating?
objectsConnect With a Mentor Commented:
you'll need to iterate thru the tree to find the node u want to hilite
Each item of ComboBox should know which row/node it is related to
Then use jTree.setSelectionRow(row)
All Courses

From novice to tech pro — start learning today.