jdk/src/java.desktop/share/classes/sun/print/RasterPrinterJob.java
changeset 44657 e926e753a4c7
parent 44348 dbf9b2624dfa
child 45520 78fc4902bcbf
equal deleted inserted replaced
44656:72decb1e4935 44657:e926e753a4c7
   884         } else {
   884         } else {
   885             return null;
   885             return null;
   886         }
   886         }
   887    }
   887    }
   888 
   888 
   889    protected PageFormat getPageFormatFromAttributes() {
       
   890        if (attributes == null || attributes.isEmpty()) {
       
   891             return null;
       
   892         }
       
   893         return attributeToPageFormat(getPrintService(), this.attributes);
       
   894    }
       
   895 
       
   896 
       
   897    /**
   889    /**
   898      * Presents the user a dialog for changing properties of the
   890      * Presents the user a dialog for changing properties of the
   899      * print job interactively.
   891      * print job interactively.
   900      * The services browsable here are determined by the type of
   892      * The services browsable here are determined by the type of
   901      * service currently installed.
   893      * service currently installed.