public void printPicture() {
		PrinterJob pj = PrinterJob.getPrinterJob();
	    pj.setPrintable(new Printable()
	     {
	       public int print(Graphics graphics, PageFormat pf, int pageIndex) throws PrinterException
	       {
	         if (pageIndex > 0) {
	           return 1;
	         }
	         Graphics2D g2d = (Graphics2D)graphics;
	         g2d.translate(pf.getImageableX(), pf.getImageableY());
	         g2d.drawImage(InteractiveDisplay.this.getBufferedImage(), 0, 0, null);
	         return 0;
	       }
	     });
	     if (pj.printDialog())
	       try {
	         pj.print();
	       } catch (PrinterException e1) {
	         e1.printStackTrace();
	       }
		/*if (pj.printDialog()) {
			try {
				PageFormat pf = new PageFormat();
				Paper p = new Paper();
				p.setImageableArea(this.imagePane.getX(), this.imagePane.getY(), this.imagePane.getWidth(), imagePane.getHeight());
				pf.setPaper(p);
				pj.pageDialog(pf);
				
				pj.print();
				System.out.println("Printed");
			} catch (Exception e) {
				e.printStackTrace();
			}
			System.out.println("Printed");
		}*/
		
	}