Integrated: 8354631: [macos] OpenURIHandler events not received by AWT when JavaFX is primary toolkit
Pabulaner IV
duke at openjdk.org
Thu May 15 22:36:00 UTC 2025
On Wed, 2 Apr 2025 14:06:58 GMT, Pabulaner IV <duke at 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.
>
> The test for this pull request is non trivial, as the application needs to be installed on the Mac before it can be tested. Therefore the test is provided in a separate repository and it needs to be discussed if the test is necessary to have inside the JFX repo and if so, how it should be integrated.
>
> JDK Pull Request: https://github.com/openjdk/jdk/pull/24379
> Co-Author: @FlorianKirmaier
>
> Link to the test repo: https://github.com/pabulaner/openurifx
This pull request has now been integrated.
Changeset: 5b659f58
Author: Paul H <p.hayder at icloud.com>
Committer: Kevin Rushforth <kcr at openjdk.org>
URL: https://git.openjdk.org/jfx/commit/5b659f58e5e6d6e7a621eda538f658a7967d8c92
Stats: 20 lines in 1 file changed: 20 ins; 0 del; 0 mod
8354631: [macos] OpenURIHandler events not received by AWT when JavaFX is primary toolkit
Co-authored-by: Florian Kirmaier <fkirmaier at openjdk.org>
Reviewed-by: kcr, honkar, prr
-------------
PR: https://git.openjdk.org/jfx/pull/1755
More information about the openjfx-dev
mailing list