how to get screen width and hiehgt 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();