int index = menus.indexOf(menu); if (index == -1) return;
Menu m = (Menu) menus.get (index); menus.remove (index); m.removeNotify (); m.parent = null;
remove(MenuComponent menu){  int index = menus.indexOf(menu);  if (index == -1)    return;  remove(index);}