public class printPage { /** Creates a new instance of printPage */ public printPage(WorkFrame workFrame) { PageFormat pFormat = new PageFormat(); PrinterJob pjob = PrinterJob.getPrinterJob(); if (pjob != null) { if (pFormat==null) { pFormat=pjob.defaultPage(); } pjob.setPrintable(workFrame,pFormat); if (pjob.printDialog()) { try { pjob.print(); // HIER PASSIERT DER FEHLER } catch (Exception ex) { ex.printStackTrace(); //HIER WIRD AUSGEGEBEN: java.lang.NumberFormatException: null System.out.println(ex); } } } } }