AFAIK, there is still no proper way to do this.
Although there is a dirty and short-term way:
Viewing the source codejavafx.stage.Window , there is a static method, which seems to be doing what you expect: javafx.stage.Window#impl_getWindows().
But there are a bunch of failures:
@Deprecated
@NoInit
public static Iterator<Window> impl_getWindows() {
final Iterator iterator = AccessController.doPrivileged(
new PrivilegedAction<Iterator>() {
@Override public Iterator run() {
return windowQueue.iterator();
}
}
);
return iterator;
}
source
share