Answers for "how to get the size of the screen in java"

13

java get screen size

Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();

// the screen height
screenSize.getHeight();

// the screen width
screenSize.getWidth();
Posted by: Guest on July-07-2020

Code answers related to "how to get the size of the screen in java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language