treeTable.addMouseListener(new PopupListener());
public void mouseReleased(MouseEvent e) { maybeShowPopup(e); }
/** * Don't know why you need both of these, but this is how they did it in * the example */ public void mousePressed(MouseEvent e) { maybeShowPopup(e); }