Answers for "java get screen size"

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
1

how to know width in java

int screenHeight = screenSize.height;
int screenWidth = screenSize.width;
Posted by: Guest on July-25-2020
1

how to get the screen dimensions in java

Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
Posted by: Guest on April-24-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language