[OpenJDK 2D-Dev] [9] RFR JDK-8170578: The Pages Range From in print dialog is disabled

Prasanta Sadhukhan prasanta.sadhukhan at oracle.com
Thu Dec 15 05:50:59 UTC 2016

Hi All,

Please review a testbug fix for jdk9 for an issue where it it seen that 
PageRanges option is disabled in printer dialog in ubuntu16.10.

Bug: https://bugs.openjdk.java.net/browse/JDK-8170578

webrev: http://cr.openjdk.java.net/~psadhukhan/8170578/webrev.00/

Issue was, in ubuntu16.10 the attribute map [obtained here 
does not have
"pageranges-supported" attribute returned by CUPS
so this category is not added to supported categories
so isAttributeCategorySupported() called by ServiceDialog returns false
resulting in PageRanges option getting disabled.

Fix is to check if PageRanges category is supported in underlying 
platform, only then proceed with the test.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/2d-dev/attachments/20161215/f74068a2/attachment.html>

More information about the 2d-dev mailing list