<AWT Dev> <AWT dev> Review request for JDK-8137137: [macosx] The native dialog doesn't have 'close'(X) button on Mac OS.
manajit.halder at oracle.com
Fri Apr 15 17:53:32 UTC 2016
Kindly review the fix for JDK9.
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...
More information about the awt-dev