item = new JMenuItem("Drucken"); item.setActionCommand("print_callerlist"); item.addActionListener(this); item.setEnabled(JFritz.DEVEL_VERSION); jfritzMenu.add(item);
	public JMenuBar createMenu() {		String menu_text = JFritz.PROGRAM_NAME;		if (JFritz.runsOn() == "mac")			menu_text = "Ablage";		JMenu jfritzMenu = new JMenu(menu_text);		//JMenu editMenu = new JMenu(JFritz.getMessage("edit_menu"));		JMenu optionsMenu = new JMenu(JFritz.getMessage("options_menu"));		JMenu helpMenu = new JMenu(JFritz.getMessage("help_menu"));		JMenu lnfMenu = new JMenu(JFritz.getMessage("lnf_menu"));		JMenu exportMenu = new JMenu(JFritz.getMessage("export_menu"));		JMenu viewMenu = new JMenu(JFritz.getMessage("view_menu"));		JMenuItem item = new JMenuItem(JFritz.getMessage("fetchlist"), 'a');		item.setActionCommand("fetchList");		item.addActionListener(this);		jfritzMenu.add(item);		item = new JMenuItem(JFritz.getMessage("reverse_lookup"), 'l');		item.setActionCommand("reverselookup");		item.addActionListener(this);		jfritzMenu.add(item);		// Drucken funktioniert schon, aber wir sollten vielleicht eine externe Bibliothek benutzen.		// item = new JMenuItem("Drucken");		// item.setActionCommand("print_callerlist");		// item.addActionListener(this);		// item.setEnabled(JFritz.DEVEL_VERSION);		// jfritzMenu.add(item);				item = new JMenuItem(JFritz.getMessage("export_csv"), 'c');		item.setActionCommand("export_csv");		item.addActionListener(this);		exportMenu.add(item);// TODO: Knnen wir von mir aus (Robert) entfernen. In Exel kann man auch CSV-Dateien importieren 	//		item = new JMenuItem(JFritz.getMessage("export_excel"), 'c');//		item.setActionCommand("export_excel");//		item.addActionListener(this);//		item.setEnabled(JFritz.DEVEL_VERSION);//		exportMenu.add(item);//		 TODO: Knnen wir von mir aus (Robert) entfernen. In OpenOffice kann man auch CSV-Dateien importieren 	//		item = new JMenuItem(JFritz.getMessage("export_openoffice"), 'c');//		item.setActionCommand("export_openoffice");//		item.addActionListener(this);//		item.setEnabled(JFritz.DEVEL_VERSION);		exportMenu.add(item);		jfritzMenu.add(exportMenu);		if (JFritz.runsOn() != "mac") {			jfritzMenu.add(new JSeparator());			item = new JMenuItem(JFritz.getMessage("prog_exit"), 'x');			//item.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Q,			//		ActionEvent.ALT_MASK));			item.setActionCommand("exit");			item.addActionListener(this);			jfritzMenu.add(item);		}		item = new JMenuItem(JFritz.getMessage("help_content"), 'h');		item.setActionCommand("help");		item.addActionListener(this);		//		item.setEnabled(JFritz.DEVEL_VERSION);		helpMenu.add(item);		item = new JMenuItem(JFritz.getMessage("jfritz_website"), 'w');		item.setActionCommand("website");		item.addActionListener(this);		helpMenu.add(item);		if (JFritz.runsOn() != "mac") {			helpMenu.add(new JSeparator());			item = new JMenuItem(JFritz.getMessage("prog_info"), 'i');			item.setActionCommand("about");			item.addActionListener(this);			helpMenu.add(item);		}		LookAndFeelInfo[] lnfs = UIManager.getInstalledLookAndFeels();		ButtonGroup lnfgroup = new ButtonGroup();		for (int i = 0; i < lnfs.length; i++) {			JRadioButtonMenuItem rbmi = new JRadioButtonMenuItem(lnfs[i]					.getName());			lnfMenu.add(rbmi);			rbmi.setSelected(UIManager.getLookAndFeel().getClass().getName()					.equals(lnfs[i].getClassName()));			rbmi.putClientProperty("lnf name", lnfs[i]);			rbmi.addItemListener(this);			lnfgroup.add(rbmi);		}		optionsMenu.add(lnfMenu);		if (JFritz.runsOn() != "mac") {			item = new JMenuItem(JFritz.getMessage("config"), 'e');			item.setActionCommand("config");			item.addActionListener(this);			optionsMenu.add(item);		}		item = new JMenuItem(JFritz.getMessage("callerlist"), null);		item.setActionCommand("callerlist");		item.addActionListener(this);		viewMenu.add(item);		item = new JMenuItem(JFritz.getMessage("phonebook"), null);		item.setActionCommand("phonebook");		item.addActionListener(this);		viewMenu.add(item);		item = new JMenuItem(JFritz.getMessage("quickdials"), null);		item.setActionCommand("quickdial");		item.addActionListener(this);		viewMenu.add(item);		menu = new JMenuBar();		menu.add(jfritzMenu);		menu.add(optionsMenu);		menu.add(viewMenu);		menu.add(helpMenu);		return menu;	}