I noticed that executing getScene() on nodes placed inside a TabPane returns null. Also getParent() returns null.
I need to call getScene() for a dialog which opens from a node in the hierarchy.
As an example my hierarchy is like this:
Stage-Scene-SplitPane-TabPane-Tab-TextArea
Inside textArea I open an Alert and call
myAlert.initOwner( textArea.getScene());
textArea.getScene() returns null, so the dialog shows on a different monitor (bad position and does not inherit css ).
How may I avoid this?