public void printCurrentPage() {
		try {
		PrinterJob pj = PrinterJob.getPrinterJob();
		pj.defaultPage(pg.getPageFormat(0));
		pj.setPrintable(new PsuedoPrintable());
		javax.print.attribute.HashPrintRequestAttributeSet pra = 
				new javax.print.attribute.HashPrintRequestAttributeSet();
		if(pj.printDialog(pra))
		pj.print(pra);
		}
		catch(Exception ex) {
		JOptionPane.showMessageDialog(null,ex.toString(), "Error in Printing", 1);
		}
	}