for (int i=actions.size()-1; i>=0; --i) {
Object a = actions.get(i);
if (a!=null) menu.add(new ActionMenuItem(node, a), 0);
}
// Finally popup the result
menu.show((JComponent)e.getSource(), e.getX(), e.getY());
} else if (e.getClickCount()==2 && (e.getModifiers()&MouseEvent.BUTTON1_MASK)==MouseEvent.BUTTON1_MASK){
Object dest = null;
TreePath path = sceneTree.getPathForLocation(e.getX(), e.getY());