On Fri, 1 May 2026 07:33:46 GMT, Christopher Schnick <[email protected]> 
wrote:

>> Pabulaner IV has updated the pull request incrementally with two additional 
>> commits since the last revision:
>> 
>>  - 8359108: Mac - When Swing starts First, native application menu doesn't 
>> work for JavaFX
>>  - 8359108: Mac - When Swing starts First, native application menu doesn't 
>> work for JavaFX
>
> You can check out 
> https://github.com/crschnick/jfx-test/blob/master/src/main/java/io/xpipe/jfx_runner/MenuBar.java.
>  It uses the new jfx-runner gradle scripts, so you can run and debug it from 
> that repo by just running ./gradlew run

@crschnick If I understand you correctly in the past calling 
`Desktop.getDesktop().setPreferencesHandler()` would ensure that a Preferences 
item showed up in the system application menu. I can't reproduce that behavior. 
I've taken your MenuBar.java sample code and run it with JDK 21 and JavaFX 17 
and other combinations and can't get that to happen. No matter what I do I only 
see the JavaFX  application menu (4 items), never the AWT one (at least 6).

BTW I'm testing your MenuBar.java outside of the jfx-runner gradle system. I've 
already got my own shell scripts that allow me to switch between different JFX 
and Java versions. I did need to tweak MenuBar.java to make `main` public.

-------------

PR Comment: https://git.openjdk.org/jfx/pull/1904#issuecomment-4373367285

Reply via email to