List of usage examples for javax.print.event PrintServiceAttributeEvent getPrintService
public PrintService getPrintService()
From source file:Main.java
public void attributeUpdate(PrintServiceAttributeEvent psae) { PrintService service = psae.getPrintService(); Attribute[] attrs = psae.getAttributes().toArray(); for (int i = 0; i < attrs.length; i++) { String attrName = attrs[i].getName(); String attrValue = attrs[i].toString(); }/* www . j ava2 s. co m*/ }