Answers for "user screen size 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 "Java"

Java Answers by Framework

Browse Popular Code Answers by Language