250251252253254255256257258259260
case C : // popup_menu = new JPopupMenu(); // popup_menu.add(column_setup); break; } popup_menu.show(e.getComponent(), e.getX(), e.getY()); } } }
763764765766767768769770771772773
// popup_menu.addSeparator(); // popup_menu.add(column_setup); break; } popup_menu.show(e.getComponent(), e.getX(), e.getY()); } } }
258259260261262263264265266267268
JPopupMenu popup_menu = new JPopupMenu(); popup_menu.add(column_setup); popup_menu.show(e.getComponent(), e.getX(), e.getY()); } } }
228229230231232233234235236237238
checkPopup(e); } private void checkPopup(MouseEvent e) { if (e.isPopupTrigger()) { popup_menu.show(e.getComponent(), e.getX(), e.getY()); } } } serverMessages.addMouseListener(new MousePopupListener()); setServerListCount();
413414415416417418419420421422423
popup_menu.add(close); popup_menu.add(column_setup); break; } popup_menu.show(e.getComponent(), e.getX(), e.getY()); } } } this.addMouseListener(new PopupListener()); }
215216217218219220221222223224225
296297298299300301302303304305306
aa.setLocation(this, x, y); JMenuItem jmi = new JMenuItem(aa); popup.add(jmi); } } popup.show(this, x, y); } private JMenu createSubMenu(AbstractNode n, String name, int x, int y) { // TODO get i81n menu title JMenu subMenu = new JMenu(name);
799800801802803804805806807808809
} if (pop == null) { pop = _globalPopup; } pop.show(this, x, y); } } /** * Fire a "tree cleared" event to all listeners.