How to get current screen details in javafx?

╄→гoц情女王★ 提交于 2019-12-22 04:40:34

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/20176340/how-to-get-current-screen-details-in-javafx

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!