Does anyone know how to fire an event for TreeSelectionListener without clicking anywhere inside the jtree? I have a button that, when pressed, selects the next entry in the jtree, and would like the TreeSelectionListener to follow suit and highlight the object when the button is pushed. Thx.
do you really need the TreeSelectionListener for selecting the next value? I don't think so. I'd just select the appropriate value when the button gets clicked. something like: jTree.getSelectionModel().setSelectionPath(newPath);
I can't beleive you just said that. Now I need to calm down with this tiny ad:
a bit of art, as a gift, the permaculture playing cards