Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get current screen details in javafx?

I have multiple monitor connected with my PC. From javaFX I can get primary screen. But I need to know about the screen details of the screen the stage currently is. How can I get that?

like image 342
Kabir Avatar asked Nov 24 '13 15:11

Kabir


1 Answers

Try to use getScreensForRectangle with the x, y, width and height of your window.

like image 179
Puce Avatar answered Oct 15 '22 15:10

Puce