List of usage examples for javax.print.attribute.standard ColorSupported SUPPORTED
ColorSupported SUPPORTED
To view the source code for javax.print.attribute.standard ColorSupported SUPPORTED.
Click Source Link
From source file:Main.java
public static void main(String[] argv) throws Exception { PrintService[] services = PrintServiceLookup.lookupPrintServices(null, null); PrintService service = PrintServiceLookup.lookupDefaultPrintService(); services = PrintServiceLookup.lookupPrintServices(DocFlavor.INPUT_STREAM.GIF, null); AttributeSet aset = new HashAttributeSet(); aset.add(new PrinterName("HP LaserJet", null)); services = PrintServiceLookup.lookupPrintServices(null, aset); aset = new HashAttributeSet(); aset.add(ColorSupported.SUPPORTED); services = PrintServiceLookup.lookupPrintServices(null, aset); }