Given a print service from something like PrintService defaultPrintService = PrintServiceLookup.lookupDefaultPrintService()
is there a way to query the default print service to get the paper sizes that print service (printer) can handle? For example, I'd like to get a list back containing things like "Legal", "Letter", "A4", "A5", "B4", etc. I'm fiddling around with the following code... PrintService defaultPrintService = PrintServiceLookup.lookupDefaultPrintService(); Object [] res = (Object [])defaultPrintService.getSupportedAttributeValues(Media.class, null, null); MediaRequested mr = (MediaRequested)res[0]; System.out.println("mr="+mr); and the final result is "mr=na-letter". I was hoping I'd get a list of legal paper sizes. Is this even possible? Thanks. -- View this message in context: http://www.nabble.com/Querying-paper-sizes-for-a-printer-tp18254676p18254676.html Sent from the Sun - Java2D-Interest mailing list archive at Nabble.com. =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA2D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".