jdk/src/java.desktop/share/classes/sun/print/RasterPrinterJob.java
changeset 37690 0e619f348ff7
parent 36886 c56d9d689225
child 39528 0544281c5bd3
equal deleted inserted replaced
37689:c69dbc15e4bd 37690:0e619f348ff7
  1386 
  1386 
  1387         DocPrintJob job = psvc.createPrintJob();
  1387         DocPrintJob job = psvc.createPrintJob();
  1388         Doc doc = new PageableDoc(getPageable());
  1388         Doc doc = new PageableDoc(getPageable());
  1389         if (attributes == null) {
  1389         if (attributes == null) {
  1390             attributes = new HashPrintRequestAttributeSet();
  1390             attributes = new HashPrintRequestAttributeSet();
       
  1391             attributes.add(new Copies(getCopies()));
       
  1392             attributes.add(new JobName(getJobName(), null));
  1391         }
  1393         }
  1392         try {
  1394         try {
  1393             job.print(doc, attributes);
  1395             job.print(doc, attributes);
  1394         } catch (PrintException e) {
  1396         } catch (PrintException e) {
  1395             throw new PrinterException(e.toString());
  1397             throw new PrinterException(e.toString());