public void print() {
		final PrinterJob printJob = PrinterJob.getPrinterJob();
		printJob.setPrintable(new XHTMLPrintable(program.getMainPanel()
				.getxHTMLPanel()));

		if (printJob.printDialog()) {
			new Thread(new Runnable() {
				public void run() {
					try {
						printJob.print();
					} catch (PrinterException ex) {
						System.err.println(ex.getMessage());
					}
				}
			}).start();
		}
	}