I need to specify a custom media for printing on a 32x48 sheet of plotter paper without using a page setup dialog. The MediaName class hints at creating a custom MediaName subclass, but there's no way to specify a custom media size with this MediaName.
How does one print to custom-sized media from within Java? I am using the java 1.3+ printing API (with the PrintRequestAttributeSets, etc).