public JMenu loadMenu(String title, String[] menutitles) {
		JMenu menu = new JMenu(title);
		add(menu);
		boolean radioButtonMode = false;
		boolean checkBoxButtonMode = false;
		ButtonGroup group = new ButtonGroup();

		for (int i = 0; i < menutitles.length; i++) {
			if (menutitles[i].equals("***")) {
				menu.add(new JSeparator());
				radioButtonMode = false;
				checkBoxButtonMode = false;
			} else if (menutitles[i].equals("*rad*")) {
				radioButtonMode = true;
				group = new ButtonGroup();
			} else if (menutitles[i].equals("*check*")) {
				checkBoxButtonMode = true;
			} else {
				if (radioButtonMode) {
					menu.add(radioButton(menutitles[i], group));
				} else if (checkBoxButtonMode) {
					menu.add(checkBoxButton(menutitles[i]));
				} else {
					menu.add(menuItem(menutitles[i]));
				}
			}
		}
		return menu;
	}