Get how many monitors are connected.

Davide Perini perini.davide at
Fri Sep 3 14:06:48 UTC 2021

I'm using this to get how many monitors is connected to the PC:

for (Screen screen : Screen.getScreens()) {


Is there a way to know what is the first, second and third monitor?
Using Windows and I would like to see what is the first monitor set in 
windows, what's the second and so on.

Is this possible using JavaFX?


More information about the openjfx-dev mailing list