标签:屏幕尺寸 dimen rectangle pre class eth javafx idt efault
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
double width = screenSize.getWidth();
double height = screenSize.getHeight();
Rectangle2D screenRectangle = Screen.getPrimary().getBounds();
double width = screenRectangle.getWidth();
double height = screenRectangle.getHeight();
标签:屏幕尺寸 dimen rectangle pre class eth javafx idt efault
原文地址:https://www.cnblogs.com/6b7b5fc3/p/12996947.html