/** Create a new menu bar.
* @param mainFrame main frame reference.
*/
public MenuBar(MainFrame mainFrame) {
this.mainFrame = mainFrame;
this.action = new MenuBarActionImpl(mainFrame);
this.menus = new TreeMap<String, JMenu>();
this.items = new TreeMap<String, JMenuItem>();
}