[OpenJDK 2D-Dev] [9] RFR JDK-7064425: PageFormat Dialog has no owner window to reactivate

Prasanta Sadhukhan prasanta.sadhukhan at oracle.com
Thu Aug 25 10:40:46 UTC 2016


Hi All,

Please review a fix for jdk9 for an issue where it is seen that 
PageDialog and PrintDialog is not associated with the owner Frame that 
spawns the dialog.

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

The issue was there we explicitly pass null as owner to ServiceDialog in 
pageDialog(attributes).
Proposed fix is to get the owner window,
if pageDialog is called before calling printDialog, the window will be a 
Frame else the owner window will be ServiceDialog
and pass this owner window to ServiceDialog instead of null.

For PrintDialog, the proposed fix is to set an attribute with 
DialogOwner so that ServiceUI dialog can parse that attribute and can 
use the owner window as parent of the dialaog,

Regards
Prasanta



More information about the 2d-dev mailing list