0
Q:

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
0

New to Communities?

Join the community