get screen width and height java code example
Example: java get screen size
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
// the screen height
screenSize.getHeight();
// the screen width
screenSize.getWidth();
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
// the screen height
screenSize.getHeight();
// the screen width
screenSize.getWidth();