private void initialize() {

		mnButtons = new HashMap<MenuContent, JMenu>();
		mnItems = new HashMap<MenuItem, JMenuItem>();
		for (final MenuContent menu : MenuContent.values()) {
			final JMenu mnButton = new JMenu(Window.geti18nString(menu.getSection()));
			mnButtons.put(menu, mnButton);
			add(mnButton);
			final List<MenuItem> items = menu.getItems();
			for (final MenuItem item : items) {
				final JMenuItem mnItem = new ExtJMenuItem(Window.geti18nString(item
						.getName()), parent);
				mnItems.put(item, mnItem);
				mnButton.add(mnItem);
				try {
					switch (menu) {
						case FILE:
							mnItem.addActionListener(new FileButtonsListener(item));
						break;
						case EDIT:
							mnItem.addActionListener(new EditButtonsListener(item));
						break;
						case ABOUT:
							mnItem.addActionListener(new AboutButtonActionListener());
						break;
					}
				} catch (final IllegalParametrs e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			}
		}
	}