<AWT Dev> [9] Review Request: 8048549 [macosx] Disable usage of system menu bar if AWT is embedded in FX

Anthony Petrov anthony.petrov at oracle.com
Wed Jul 2 14:37:21 UTC 2014

Hi Petr,

The fix looks fine to me.

Note that there's also AWT API to set a menubar, and it seems (I haven't 
investigated deeply) that the LWAWT implementation uses the system menu 
bar unconditionally in this case. I believe we can assume that AWT API 
isn't used widely and we can leave it as it is. But it's worth noting 
this in the bug comments.

best regards,

On 7/2/2014 6:25 PM, Petr Pchelko wrote:
> Hello, AWT Team.
> Please review the fix for the issue:
> https://bugs.openjdk.java.net/browse/JDK-8048549
> The fix is available at:
> http://cr.openjdk.java.net/~pchelko/9/8048549/webrev/
> We need to disable the screenMenuBar if AWT is embedded into FX. Only the top-level UI toolkit should work with the global menu bar.
> We are already doing the same thing in FX. I've also added some cleanup into the fix. No test provided because we do not have tests for
> embedded mode.
> With best regards. Petr.

More information about the awt-dev mailing list