I'm using a renderer that extends DefaultTreeCellRenderer. When I left-click on a tree node, it becomes highlighted. But not on a right-click. At first I thought it was because the popupMenu was stealing the focus, but I took the menu code out and same results.
So, anyone know how to highlight a tree node when it's right-clicked?
Joined: Aug 19, 2002
Turns out, all I needed was this code in my MouseAdapter inner class:
subject: DefaultTreeCellRenderer not highlighting TreeNode on right-click