code: public static JMenuItem addMenuItem (
          ActionListener l, JMenu menu, String name)
      {
          return addMenuItem(l, menu, name, null, null);
      }
docs: Adds a new menu item to the menu with the specified name.
  
  @param l the action listener.
  @param menu the menu to add the item to.
  @param name the item name.
  
  @return the new menu item.