Here you can find the source of showAttributes(PrintRequestAttributeSet aset)
public static void showAttributes(PrintRequestAttributeSet aset)
//package com.java2s; //License from project: Open Source License import javax.print.attribute.Attribute; import javax.print.attribute.PrintRequestAttributeSet; public class Main { public static void showAttributes(PrintRequestAttributeSet aset) { Attribute tab[] = aset.toArray(); for (int i = 0; i < tab.length; i++) { Attribute attr = tab[i]; System.out.println(" - " + i + ". " + attr.getName() + " " + attr.toString()); }/*from w w w. jav a 2 s .c o m*/ } }