A menu bar is the first building block of a menu. First create a menu bar, then position it on a frame. The menus are added to the menu bar just like a button or any component is added to a container. In this case, the menu bar is like the container. E.g., myMenuBar.add(myEditMenu); adds a menu object called myEditMenu to the menu bar.