Scott Palmer swpalmer at gmail.com
Fri Dec 14 07:39:48 PST 2012

I'm trying to migrate more of my app from Swing to JavaFX piece-wise via JFXPanels.  It's not fun as there are many rough edges.  In order to work around some of them I am wondering if it is possible to get a reference to the JFXPanel if all I have is a Node? I can get the Scene's Window, an "Embedded" Window that seems to be the root of a lot of problems with popups and dialogs.  That seems to be enough to determine that the Node is hosted by a JFXPanel, but can I actually get the JFXPanel instance?

If there is a way via public APIs that don't rely on me peaking at implementation details like com.sun.javafx.stage.EmbeddedWindow?

Along this line… why is it that things like the FileChooser and other JavaFX dialogs don't respect the window ordering when used from a JFXPanel? They easily flip behind the parent JFrame.  I would have thought that the correct Window hierarchy in native land could still include the native window of the JFrame and that should prevent such things.


More information about the openjfx-dev mailing list