FULL PRODUCT VERSION :
java version "1.7.0_51"
Java(TM) SE Runtime Environment (build 1.7.0_51-b13)
Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Linux kendzi-pc 3.11.0-15-generic #25-Ubuntu SMP Thu Jan 30 17:22:01 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
EXTRA RELEVANT SYSTEM CONFIGURATION :
I have Ubuntu with Unit and two screens with resolutions: 1920x1080 and 1280x1024.
A DESCRIPTION OF THE PROBLEM :
Some application try to setup windows size using that method
GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds()
But on my computer java7 give wrong result:
java.awt.Rectangle[x=3905,y=24,width=-705,height=1000]
It seems that x and width values are complicity wrong.
Same call with java6 give wrong, but better result:
java.awt.Rectangle[x=1920,y=0,width=1280,height=1024]
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Run Ubuntu with dual screens
2. call method GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds()
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
I'm expect to get
java.awt.Rectangle[x=0,y=24,width=3200,height=1000]
ACTUAL -
But currently I get:
java.awt.Rectangle[x=3905,y=24,width=-705,height=1000]
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
public static void main(String[] args) {
System.out.println(GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds());
}
---------- END SOURCE ----------