I've read about using a JDialog to wrap a JFXPanel in order to use JDialog's alwaysOnTop method. It works, but I'm having a small issue with this hack.

Since I'm using this technique to make secondary windows to my main application (popups etc), I need to set them on top of the main window. If I use the wrapper hack to do this, the top panel is "always on top" of *everything* (including other applications). 

Is there a way to put the secondary screen *only on top of my application*? I don't like the fact that another application can be dragged in between the main window and secondary window of my application.