[API Review] RT-27887: introduce a node to embed Swing into JavaFX

Werner Lehmann lehmann at media-interactive.de
Fri Jan 25 08:48:31 PST 2013

Seems as if there are exceptions to the rule. For example, a ContextMenu 
shown from a JFXPanel does not autohide when moving or resizing the 
JFrame parent of the JFXPanel.

To workaround this I had to listen for changes on the Scene.window.x / y 
/ width properties to explicitly hide the ContextMenu. In some case it 
was sufficient to listen for focus-lost on the Node showing the 
ContextMenu but that did not work always (moving the JFrame did not 
remove focus from a Node in a JFXPanel).


On 25.01.2013 16:12, Anthony Petrov wrote:
> Popups have a very nice peculiarity that masks the problem: they hide
> whenever you click somewhere else. So you can't actually notice the
> z-order issue even if they don't have a proper owner window set. E.g.
> this is how this currently works for JFXPanel (at least in FX 8).

More information about the openjfx-dev mailing list