Shape () { GraphicsDevice[] devices = GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices(); if (devices.length == 0) { return new Rectangle(); } if (devices.length == 1) { return getScreenRectangle(devices[0]); } Area area = new Area(); for (GraphicsDevice device : devices) { area.add(new Area(getScreenRectangle(device))); } return area; }