JavaFX获取屏幕尺寸
2020-12-30 08:28
标签:尺寸 get ima getheight lang dimen javafx tool screens JavaFX获取屏幕尺寸 标签:尺寸 get ima getheight lang dimen javafx tool screens 原文地址:https://blog.51cto.com/14415843/2500008Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
double width = screenSize.getWidth();
double height = screenSize.getHeight();
2 javafx
Rectangle2D screenRectangle = Screen.getPrimary().getBounds();
double width = screenRectangle.getWidth();
double height = screenRectangle.getHeight();
上一篇:Python之for循环
下一篇:C/C++ const