List of usage examples for javax.print.event PrintJobAttributeListener interface-usage
From source file Main.java
class MyPrintJobAttributeListener implements PrintJobAttributeListener { public void attributeUpdate(PrintJobAttributeEvent pjae) { Attribute[] attrs = pjae.getAttributes().toArray(); for (int i = 0; i < attrs.length; i++) { String attrName = attrs[i].getName(); String attrValue = attrs[i].toString();