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?

Improve company productivity with a Business Account.Sign Up

x
 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.