java get screen size
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
// the screen height
screenSize.getHeight();
// the screen width
screenSize.getWidth();
java get screen size
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
// the screen height
screenSize.getHeight();
// the screen width
screenSize.getWidth();
how to know width in java
int screenHeight = screenSize.height;
int screenWidth = screenSize.width;
how to get the screen dimensions in java
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us