Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get all top level window javafx?

Tags:

java

javafx

I saw a method in AWT: java.awt.Window.getWindows(). In JavaFx, is there any method to get all window JavaFx application?

Thanks,

like image 791
Phuc Thai Avatar asked Mar 06 '13 04:03

Phuc Thai


1 Answers

for javafx8 running java8 use

FXRobotHelper.getStages()
 or 
StageHelper.getStages()

This will retrieve all Stages which is essentially a Window itself ( it extends Window class)

like image 195
Macdevign Avatar answered Oct 05 '22 11:10

Macdevign