如何在javafx中获取当前屏幕详细信息? [英] How to get current screen details in javafx?

查看:540
本文介绍了如何在javafx中获取当前屏幕详细信息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的PC连接了多台显示器.从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?

推荐答案

尝试使用

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

这篇关于如何在javafx中获取当前屏幕详细信息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆