how to get the size of the screen in 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();