Answers for "how to get the screem height and width in javafx"

2

javafx get screen size

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

Output:
Height: 1440.0 Width: 2560.0
Posted by: Guest on July-15-2020

Code answers related to "how to get the screem height and width in javafx"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language