[OpenJDK 2D-Dev] [9] RFR: JDK-8138749, , Revisited: PrinterJob.printDialog() does not support multi-mon, always displayed on primary
prasanta sadhukhan
prasanta.sadhukhan at oracle.com
Wed Jan 20 11:08:50 UTC 2016
Hi All,
Bug: https://bugs.openjdk.java.net/browse/JDK-8138749
webrev: http://cr.openjdk.java.net/~psadhukhan/8138749/webrev.00/
Please review a fix for a long standing issue whereby it is seen that
PrinterJob.printDialog(attr set) does not support multi-monitor setup.
When this API is invoked, the print dialog is always displayed on the
default screen device regardless of where the application is running.
This is because this method
uses ServiceDialog class for creating the dialog and that indeed
supports passing a GC in which we would like to have the dialog. But
printer job always uses the GraphicsConfig of the default screen device
resulting in print dialog to be shown on primary device/monitor.
I have not considered pageDialog() for this fix. Will create a separate
bugid and send a patch for that as well once this fix is approved.
Regards
Prasanta
More information about the 2d-dev
mailing list