<!DOCTYPE html><html><body><div dir="auto">Dear developers,<br><br>I am currently fixing a bug on the JavaFX side which also affects the JDK (for details: <a href="https://bugs.openjdk.org/browse/JDK-8332947)">https://bugs.openjdk.org/browse/JDK-8332947)</a>.<br>I need to handle openURL events for a MacOS native Java application, while also using the native menu bar from within JavaFX. <br>The main issue is that for opening an URL, I rely on AWT. <br>Now I have the problem when firstly registering the openURL event handler with AWT, JavaFX will run embedded and won’t register the native menu.<br>But if I firstly initialize JavaFX, AWT won’t receive the openURL events as it is running embedded and won’t register the appropriate app delegate.<br><br>My proposal is to add a notification listener to the Notification Center that listens for events if running embedded (for the implementation: <a href="https://github.com/pabulaner/jdk/tree/embedded-event)">https://github.com/pabulaner/jdk/tree/embedded-event)</a>.<br>Those events can be used to forward events not handled by other applications (like JavaFX and openURL) to AWT to handle them on their behalf.<br>This would allow JavaFX to call the AWT openURL method without adding a direct dependency to it and would allow AWT to receive events, even if it runs embedded and only if the application desires it.<br><br>Please let me know what Your feedback is on that proposal and the concrete implementation.<br><br>Best Regards<br>Paul Hayder<br><br>Github: <a href="https://github.com/pabulaner">https://github.com/pabulaner</a></div></body></html>