View RSS Feed

Java AWT

Attribute Definitions

Rate this Entry
by , 03-07-2012 at 06:50 PM (686 Views)
The javax.print.attribute.standard & javax.print.attribute packages details those attributes of prints that show the print service’s capabilities, requirement of print job or the progress of print job.

E.g, for using A4 paper format to print 3 copies, you shall construct following attributes set implementing
the PrintRequestAttributeSet interface:
Java Code:
PrintRequestAttributeSet attr_set =
    new HashPrintRequestAttributeSet();
attr_set.add(new Copies(3));

Submit "Attribute Definitions" to Facebook Submit "Attribute Definitions" to Digg Submit "Attribute Definitions" to Submit "Attribute Definitions" to StumbleUpon Submit "Attribute Definitions" to Google