if (e.getActionCommand().equals("exit")) { if(jFritz.showExitDialog()){ super.processWindowEvent(new WindowEvent(this, WindowEvent.WINDOW_CLOSING)); jFritz.exit(0); }
if (e.getActionCommand().equals("exit")) { jFritz.maybeExit(0);
	public void actionPerformed(ActionEvent e) {		Debug.msg("Action " + e.getActionCommand()); //$NON-NLS-1$		if (e.getActionCommand().equals("exit")) {			if(jFritz.showExitDialog()){				super.processWindowEvent(new WindowEvent(this, WindowEvent.WINDOW_CLOSING));			jFritz.exit(0);			}		} else if (e.getActionCommand().equals("about")) {			showAboutDialog();		} else if (e.getActionCommand().equals("help")) { //$NON-NLS-1$			BrowserLaunch.openURL(JFritz.DOCUMENTATION_URL);		} else if (e.getActionCommand().equals("website")) { //$NON-NLS-1$			BrowserLaunch.openURL(Main.PROGRAM_URL);		} else if (e.getActionCommand().equals("export_csv")) {			exportCallerListToCSV();		} else if (e.getActionCommand().equals("update")) { //$NON-NLS-1$			JFritzUpdate jfritzUpdate = new JFritzUpdate(true);			Update update = new Update(jfritzUpdate.getPropertiesDirectory());			update.loadSettings();			update.setProgramVersion(Main.PROGRAM_VERSION);			jfritzUpdate.downloadNewFiles(update);			update.saveSettings();		} else if (e.getActionCommand().equals("export_phonebook")) {			exportPhoneBookToCSV();		} else if (e.getActionCommand().equals("print_callerlist")) {			printCallerList();		} else if (e.getActionCommand().equals("import_outlook")) {			importOutlook();		} else if (e.getActionCommand().equals("config")) {			showConfigDialog();		} else if (e.getActionCommand().equals("callerlist")) {			tabber.setSelectedComponent(callerListPanel);		} else if (e.getActionCommand().equals("phonebook")) {			activatePhoneBook();		} else if (e.getActionCommand().equals("quickdial")) {			tabber.setSelectedComponent(quickDialPanel);		} else if (e.getActionCommand().equals("stats")) {			showStatsDialog();		} else if (e.getActionCommand().equals("fetchList")) {			fetchList();		} else if (e.getActionCommand().equals("delete_fritzbox_callerlist")) {			deleteFritzBoxCallerList();		} else if (e.getActionCommand().equals(		"delete_duplicate_phonebook_entries")) {			deleteDuplicatePhoneBookEntries();		} else if (e.getActionCommand().equals("backup")) {			backupToChoosenDirectory();		} else if (e.getActionCommand().equals("fetchTask")) {			fetchTask(((JToggleButton) e.getSource()).isSelected());		} else if (e.getActionCommand().equals("callMonitor")) { //$NON-NLS-1$			boolean active = ((JToggleButton) e.getSource()).isSelected();			if (active) {				Debug.msg("Start callMonitor"); //$NON-NLS-1$				startChosenCallMonitor();			} else {				Debug.msg("Stop callMonitor"); //$NON-NLS-1$				JFritz.stopCallMonitor();			}		} else if (e.getActionCommand().equals("reverselookup")) {			reverseLookup();		} else if (e.getActionCommand().equals("F5")) {			fetchList();		} else if (e.getActionCommand().equals("import_callerlist_csv")) {			importCallerlistCSV();		} else if (e.getActionCommand().equals("phonebook_import")) {			phoneBookPanel.importFromXML();		} else if (e.getActionCommand().equals(		"import_contacts_thunderbird_csv")) {			importContactsThunderbirdCSV();		} else if (e.getActionCommand().equals("showhide")) {			JFritz.hideShowJFritz();		} else if (e.getActionCommand().equals("configwizard")) {			JFritz.showConfigWizard();		} else {			Debug.err("Unimplemented action: " + e.getActionCommand()); //$NON-NLS-1$		}	}