Hi All,

Bug: https://bugs.openjdk.java.net/browse/JDK-8148431 <https://bugs.openjdk.java.net/browse/JDK-8148431>
webrev: http://cr.openjdk.java.net/~psadhukhan/8148431/webrev.00/

Please review a fix in continuation with JDK-8138749 . It is seen that
PrinterJob.pageDialog(attr set) also does not support multi-monitor setup. When this API is invoked, the page setup 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 page dialog to be shown on primary device/monitor.

So, the fix is to use the GraphicsConfig of the current active window while showing the dialog.

Regards
Prasanta

Reply via email to