📜  javafx 获取屏幕大小 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:39.393000             🧑  作者: Mango

代码示例1
Rectangle2D screenBounds = Screen.getPrimary().getBounds();
System.out.println("Height: " + screenBounds.getHeight() + " Width: " + screenBounds.getWidth());

Output:
Height: 1440.0 Width: 2560.0