<AWT Dev> [12] RFR: JDK-8146310 [macosx] setDefaultMenuBar does not initialize screen menu bar

Alan Snyder javalists at cbfiddle.com
Wed Aug 22 20:19:36 UTC 2018

Please review this bug fix:

http://cr.openjdk.java.net/~alans/8146310/webrev.00/ <http://cr.openjdk.java.net/~alans/8146310/webrev.00/>

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

The root of the problem is that the code to install the default menu bar into the screen menu bar is located in the CMenuBar deactivate method. If the default menu bar is installed when there is no active window, the existing code in _AppMenuBarHandler attempts to trigger the deactivate code by creating and destroying an invisible window. This does not work if the application is inactive. The solution is to install the default menu bar directly in this case.

If approved, I will need a sponsor…

Thank you.


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

More information about the awt-dev mailing list