code: public static JPopupMenu newJPopupMenu(final String label, final Component component,
  		final JMenuItem... items)
  	{
  		// Create the popup menu.
  		final JPopupMenu popup = newJPopupMenu(label);
  		for (final JMenuItem jMenuItem : items)
  		{
  			popup.add(jMenuItem);
  		}
  		// Add listener to the component so the popup menu can come up.
  		final MouseListener popupListener = new PopupListener(popup);
  		component.addMouseListener(popupListener);
  		return popup;
  	}
docs: Factory method for create a <code>JPopupMenu</code> that will be add a
  <code>MouseListener</code> to the given <code>Component</code> and an array of
  <code>JMenuItem</code> that will be added to the popup.
  
  @param label
  the label
  @param component
  the component
  @param items
  the <code>JMenuItem</code>s
  @return the new {@link JPopupMenu}.