public void actionPerformed(ActionEvent ev) {

		Object o = ev.getSource();
		String font = fontComboModel.getSelectedItem().toString();
		String fontSize = sizeSpin.getValue().toString();
		String printOptions = "  <PRINT FONTSIZE=\"" + fontSize + "pt\" FONTFACE=\"" + font + "\"/>\n";

		if (o == prevButton) {
			File file = new File("print.html");
			try {
				app.saveAsHTML(file, "recipeToHtml.xslt", printOptions);
			} catch (Exception e1) {
				// TODO Auto-generated catch block
				e1.printStackTrace();
			}

			String urlString;
			try {
				urlString = "file://" + file.getCanonicalPath();

				Debug.print(urlString);
				AbstractLogger logger = new SystemLogger();
				BrowserLauncher launcher;
				launcher = new BrowserLauncher(logger);
				launcher.openURLinBrowser(urlString);
			} catch (IOException e1) {
				// TODO Auto-generated catch block
				e1.printStackTrace();
			} catch (BrowserLaunchingInitializingException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			} catch (UnsupportedOperatingSystemException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
			
		}

		setVisible(false);
		dispose();
	}