I'm trying to modify an existing JavaFX GUI program to have a feature of "Always Stay On Top". This is not supported in JavaFX at the moment (why!?!?), so some googling has led me to believe I must marry Swing into my JavaFX application in order to achieve this. Not ideal, but OK.
All example patterns I've found use the JFXPanel instead of Stage, however since my application already exists and was written using JavaFX from the start (zero Swing is in the codebase at the moment), removing the Stage from the application starts to become a major re-write just to support this "on top" feature.
How can I embed an existing JavaFX Stage in a JFXPanel or similar, that will allow me to use the standard getSomeSwingWindowOrPanel().setAlwaysOnTop(true); and make my application float on top of all other windows as expected? Am I going about this wrong, ie. is there a better way such as using JNI or something?