259260261262263264265266267268269
.getLastSelectedPathComponent(); if (node != null) { DefaultPolicyTreePopupMenu p = new DefaultPolicyTreePopupMenu( this, node); p.show(jtree, e.getX(), e.getY()); jtree.validate(); jtree.repaint(); jtree.treeDidChange(); } }
173174175176177178179180181182183
if (node == null) node = (AbstractTreeNode) this.treeModel.getRoot(); DefaultPolicyTreePopupMenu p = new DefaultPolicyTreePopupMenu(this, node); p.show(ctree, e.getX(), e.getY()); ctree.validate(); ctree.repaint(); ctree.treeDidChange(); } else {