The following code throws java.lang.ClassCastException
PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet();
aset.add(new MediaSize(60,80,Size2DSyntax.MM));
I suspect I did line 2 incorrectly, but I cannot find detailed documentation for Java printing services. What is the proper way to define custom media size?