item = new JMenuItem(JFritz.getMessage("import_callerlist_csv"), 'i'); item.setActionCommand("import_callerlist_csv"); item.addActionListener(this); importMenu.add(item);  item = new JMenuItem(JFritz.getMessage("phonebook_import")); item.setActionCommand("phonebook_import"); item.addActionListener(this); importMenu.add(item);  item = new JMenuItem(JFritz.getMessage("import_contacts_thunderbird_csv")); item.setActionCommand("import_contacts_thunderbird_csv"); item.addActionListener(this); importMenu.add(item);  jfritzMenu.add(importMenu);
	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 importMenu = new JMenu(JFritz.getMessage("import_menu"));		JMenu exportMenu = new JMenu(JFritz.getMessage("export_menu"));		JMenu viewMenu = new JMenu(JFritz.getMessage("view_menu"));		JMenu languageMenu = new JMenu(JFritz.getMessage("language_menu"));				//File 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);		item = new JMenuItem(JFritz.getMessage("print_callerlist"));		item.setActionCommand("print_callerlist");		item.addActionListener(this);		jfritzMenu.add(item);		item = new JMenuItem(JFritz.getMessage("delete_fritzbox_callerlist"));		item.setActionCommand("delete_fritzbox_callerlist");		item.setMnemonic(KeyEvent.VK_F);		item.addActionListener(this);		jfritzMenu.add(item);		item = new JMenuItem(JFritz.getMessage("backup"));		item.setActionCommand("backup");		item.addActionListener(this);		jfritzMenu.add(item);				//import submenu		if (JFritz.runsOn().startsWith("Windows")) {			item = new JMenuItem(JFritz.getMessage("import_contacts_outlook"));			item.setActionCommand("import_outlook");			item.addActionListener(this);			importMenu.add(item);		}			    item = new JMenuItem(JFritz.getMessage("import_callerlist_csv"), 'i');	    item.setActionCommand("import_callerlist_csv");	    item.addActionListener(this);	    importMenu.add(item);	    	    item = new JMenuItem(JFritz.getMessage("phonebook_import"));	    item.setActionCommand("phonebook_import");	    item.addActionListener(this);	    importMenu.add(item);	    	    item = new JMenuItem(JFritz.getMessage("import_contacts_thunderbird_csv"));	    item.setActionCommand("import_contacts_thunderbird_csv");	    item.addActionListener(this);	    importMenu.add(item);	    	    jfritzMenu.add(importMenu);	    //export submenu		item = new JMenuItem(JFritz.getMessage("export_csv"), 'c');		item.setActionCommand("export_csv");		item.addActionListener(this);		exportMenu.add(item);				item = new JMenuItem(JFritz.getMessage("export_csv_phonebook"));		item.setActionCommand("export_phonebook");		item.addActionListener(this);		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);		}		//options menu		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);		//languages submenu		item = new JMenuItem(JFritz.getMessage("german"));		item.setActionCommand("german");		item.addActionListener(this);		languageMenu.add(item);				item = new JMenuItem(JFritz.getMessage("english"));		item.setActionCommand("english");		item.addActionListener(this);		languageMenu.add(item);				optionsMenu.add(languageMenu);				if (JFritz.runsOn() != "mac") {			item = new JMenuItem(JFritz.getMessage("config"), 'e');			item.setActionCommand("config");			item.addActionListener(this);			optionsMenu.add(item);		}		//view menu		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);		//help menu		item = new JMenuItem(JFritz.getMessage("help_content"), 'h');		item.setActionCommand("help");		item.addActionListener(this);		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);		}				menu = new JMenuBar();		menu.add(jfritzMenu);		menu.add(optionsMenu);		menu.add(viewMenu);		menu.add(helpMenu);		return menu;	}