On Tue, 5 May 2026 15:18:56 GMT, Martin Fox <[email protected]> wrote:
>> @beldenfox Do you mean that you don't see any menu bar entry in general, or >> only for this specific case where the order of execution is different? >> >> I know that the menu bar entries were correctly shown in the past in earlier >> JDK, JavaFX, and macOS versions. I don't have an older macOS system than 26, >> so I can't test it going back. >> >> I also noticed that the Desktop setAboutHandler() method seems to be broken >> in general for AWT for macOS 26, so maybe this is more related to the macOS >> version as that method worked for earlier versions as well. > > @crschnick I never see the Settings menu item regardless of order of > execution. This is true even in older versions of JavaFX, long before this PR > came along. > > To see the Settings menu item in a JavaFX app you need to initialize it so > AWT creates the application menu instead of JavaFX. I don't see how you can > do that with test code you provided even in earlier versions of JavaFX. I > would like to look into this but need a stand-alone program that reproduces > the problem e.g. that shows the Settings menu in an older version of JavaFX > but not in the current version. @beldenfox What macOS version are you on? I see the settings entry in the reproducer I posted on macOS 26 with JavaFX master and JDK 25. The call to `GraphicsEnvironment.getLocalGraphicsEnvironment()` will initialize AWT in the reproducer ------------- PR Comment: https://git.openjdk.org/jfx/pull/1904#issuecomment-4380661426
