RFR: 8354631: [macos] OpenURIHandler events not received by AWT when JavaFX is primary toolkit [v2]

Phil Race prr at openjdk.org
Thu May 15 21:17:00 UTC 2025


On Thu, 15 May 2025 20:32:57 GMT, Pabulaner IV <duke at openjdk.org> wrote:

> Interesting feedback.

Most of it wasn't really directed at you .. more at Kevin :-)
The main question I had for you was about did it ever really work and I guess you aren't sure.

> I don't understand Your last point. If no event handler is registered, JavaFX still forwards them, but they won't do anything unless a handler is registered at some point. So what exactly do You mean?

Well we don't expect FX to know if an AWT event handler is registered - especially one at the application level, ie via
https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/java/awt/Desktop.html#setOpenURIHandler(java.awt.desktop.OpenURIHandler)

What I mean is that if FX acquired a similar API, and was the hosting toolkit, I would expect it to check if there was a "javafx.desktop.Desktop" URI Handler installed and forward only if that was "null". And vice versa for AWT.

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

PR Comment: https://git.openjdk.org/jfx/pull/1755#issuecomment-2885063390


More information about the openjfx-dev mailing list