add_menu_item


Description:

public void add_menu_item (MenuItem item)

Adds a menu item to the end of the menu.

If the menu item is already in another menu, it will be removed from that menu before being added to this menu.

Parameters:

item

The menu item to add.