The sample code tries to get all the different attribute values supported by the PrintService for MediaPrintableArea category with Media attribute. The testcase gets the supported values once by passing a null attributeset and then does the same by passing an attributeset with Media attribute. The values returned by both the cases are the same. The testcase was tested in Windows 2000
The sample code is attached herewith.
Source File: MediaPrintableAreaTest.java