remove(MenuComponent menu) { int index = menus.indexOf(menu); if (index == -1) return;
public synchronized void remove(int index) { 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);}