code: private void prepareAndShowPopup(MouseEvent e)
      {
          prepareMenu(popupMenu, e.getComponent(), e.getX(), e.getY());
          popupMenu.show(e.getComponent(), e.getX(), e.getY());
      }
docs: Prepare all {@link LocationBasedAction}s that are contained in the
  items of the menu based on the component and coordinates of the
  given mouse event
  
  @param e The mouse event