void (MouseEvent e) { if (SwingUtilities.isRightMouseButton(e)) { if (myCopyAction == null) myCopyAction = createCopyAction(); JBPopupMenu menu = new JBPopupMenu(); menu.add(new JBMenuItem(myCopyAction)); JBPopupMenu.showByEvent(e, menu); } }