<AWT Dev> <AWT dev>[9] Review request for JDK-8137137: [macosx] The native dialog doesn't have 'close'(X) button on Mac OS.

Manajit Halder manajit.halder at oracle.com
Fri Apr 15 17:53:32 UTC 2016

Hi All,

Kindly review the fix for JDK9.

https://bugs.openjdk.java.net/browse/JDK-8137137 <https://bugs.openjdk.java.net/browse/JDK-8137137>

http://cr.openjdk.java.net/~mhalder/8137137/webrev.00/ <http://cr.openjdk.java.net/~mhalder/8137137/webrev.00/>

The native print dialog and native page dialog doesn’t display close(X) button in Mac OS X.

The reported problem is the expected behaviour on Mac OS. The native print dialog does not have ‘close’(X) button on MacOS, instead the dialog contains OK or Cancel buttons and expects either Cancel or OK button clicks from the user.
The native print dialogs (“native print dialog” and “native page dialogs”) calls Cocoa method runModalWithPrintInfo on MacOS to display the print and page dialogs. runModalWithPrintInfo method does not have any close button and also the normal behaviour of a modal window is to exclude all other windows and panels from receiving events. Therefore as long as the print or page dialog window is open, no other windows will receive any events.

The user is expected to either click OK button or Cancel button (or press the ESC key) to close the print or page dialog.

No fix required. The code changed for the following reasons:
  To add proper instruction with colse(X) button behaviour on Mac OS X.
  Rewrite the test case without Applets.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/awt-dev/attachments/20160415/ae853e9a/attachment.html>

More information about the awt-dev mailing list