still u dont get me..
i need the menu "Insert" only..when we click "Insert" it shud display two submenus "add child" & "add sibling"..
ne waz, I done it by myself..
here is the code:
public TreePopup() {
popup = new JPopupMenu();
popup.setInvoker(tree);
PopupHandler handler = new PopupHandler(tree, popup);
JMenu menu = new JMenu("insert");
menu.add(getMenuItem("add child", handler));
menu.add(getMenuItem("add sibling", handler));
popup.add(menu);
}