On Tue, 29 Apr 2025 09:41:57 GMT, Pabulaner IV <d...@openjdk.org> wrote:
>> When trying to register an open URI handler when using JavaFX with a native >> menu, this task fails on Mac. >> Either the native menu is not shown or the URIs are not received. >> >> This pull request fixes this issue if AWT is registered after JavaFX, so >> that AWT runs embedded inside JavaFX. >> It fixes this by introducing a native event to AWT, which can be used by >> JavaFX to forward events such as an openURL event. >> >> JavaFX Pull Request: https://github.com/openjdk/jfx/pull/1755 >> Co-Author: @FlorianKirmaier > > Pabulaner IV has updated the pull request incrementally with one additional > commit since the last revision: > > 8332947: [macos] java.awt.desktop.OpenURIHandler is not receiving events As far as I tested it without the fix only one of the following two things works: the native menu bar or the open url handler. Because if JFX is installed first, the native menu bar works, but since AWT is then running embedded, the url handler doesn't work. If JDK / AWT is installed first the open url handler works, but not the native menu bar, since JFX is then running embedded. My fix works for the first issue, as it lets JFX send the OpenURL event to AWT and therefore fixes the issue. So I hope this answers You two questions. ------------- PR Comment: https://git.openjdk.org/jdk/pull/24379#issuecomment-2838141813