It seems that the .getBounds() method of the GraphicsConfiguration class is not reporting the correct values.
GraphicsDevice[] gdArr = GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices();
int width = 0;
for (GraphicsDevice gd : gdArr)
{
if (gd.getType() == gd.TYPE_RASTER_SCREEN)
System.out.println("Value is: " + gd.getDefaultConfiguration().getBounds().getX());
}
I have two monitors: running 1920 * 1080 and 1280 * 1080.
I get the following values:
for .getX() I get:
Value = 1920
Value = 0
for .getY() I get:
Value = 0
Value = 0
I'm running on a Linux platform with Nvidia's Twinview. Is this a bug outside of Swing?