how to get width and height of screen of current monitor in multimonitor scenarios in java.
GraphicsDevice gd = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
int width = gd.getDisplayMode().getWidth();
int height = gd.getDisplayMode().getHeight();
This piece of code gives the width and height of same monitor even if I run in other monitor.
How do you get the width and height of current monitor. Please help.