MenuItem.setSubmenu

Sets or replaces the menu item’s submenu, or removes it when a NULL submenu is passed.

class MenuItem
void
setSubmenu

Parameters

submenu Menu

the submenu, or NULL