This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
The only other check I do after that is if (selectedNode.isLeaf()) because I implement a JPopup Menu but only on a Leaf. Hope that helps. BTW - Forgot to mention that I do this in the mouseClicked(MouseEvent me) method of my mouse listener I have registered on my JTree. [ February 12, 2003: Message edited by: Gregg Bolinger ]