!7 p { GraphicsDevice[] devices = GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices(); for (GraphicsDevice d : devices) { print(d.getIDstring()); GraphicsConfiguration config = d.getDefaultConfiguration(); print(" Bounds: " + config.getBounds()); print(); } }