return;
}
// Get properties from PrintDialog UI
PrinterJob printerJob = printerDialog.getPrinterJob();
PageFormat pageFormat = printerJob.defaultPage();
printerJob.setJobName( d.toString() );
d.setSelectionPrintMode( ((Boolean)printerDialog.getPropertyValue(PrintDialog.PRINT_SELECTION)).booleanValue() );
d.setPrintBackgroundColor( ((Boolean)printerDialog.getPropertyValue(PrintDialog.PRINT_BACKGROUND)).booleanValue());
d.setScaleSheet(((Boolean)printerDialog.getPropertyValue(PrintDialog.SCALE_SHEET)).booleanValue());