public static boolean onPrint ( Component component , boolean bPrintHeader ) { PrinterJob job = PrinterJob . getPrinterJob ( ) ; ScreenPrinter fapp = new ScreenPrinter ( component , bPrintHeader ) ; job . setPrintable ( fapp ) ; if ( job . printDialog ( ) ) fapp . printJob ( job ) ; return true ; }
Print the current screen .