public void removeMenu(final int index){
  menuBar.remove(menuBar.getMenu(index));
}

public void removeMenu ( final int index ) { menuBar . remove ( menuBar . getMenu ( index ) ) ; }
this methods provide plugins the possibility to modify the menus
