I would like to have an example of how to use JPopupMenu in a JTree (within a JScrollPane).
What I have for now is:
void JMenuItem1_actionPerformed(java.awt.event.ActionEvent event)
Now when I click with right mouse button on a tree node, I'd like to popup to appear - what else should I have?
BTW on mouseClicked(MouseEvent event) how can I figure if was it the left mouse button or the right mouse button?