标签:尺寸 get ima getheight lang dimen javafx tool screens
1 awtDimension 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();
标签:尺寸 get ima getheight lang dimen javafx tool screens
原文地址:https://blog.51cto.com/14415843/2500008