-
Bug
-
Resolution: Fixed
-
P3
-
6u16, 8, 8u40
FULL PRODUCT VERSION :
java version "1.6.0_16"
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) Server VM (build 14.2-b01, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]
EXTRA RELEVANT SYSTEM CONFIGURATION :
dual monitor
A DESCRIPTION OF THE PROBLEM :
java.awt.Toolkit.getScreenInsets(GraphicsConfiguration) returns incorrect values at the one settings case of the multiple monitors.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
An issue is reproduced at one monitor multiple screen configuration case:
Two screens are plugged from left to write. I mean, in screen settings they are appearing from left to write in order 1 -> 2). And second monitor acts as a primary. Taskbar on the second monitor too.
After that you can ran simple program from the test case example.
IMPORTANT: This issue occurs only at settings which mention above. There is not any problem when first monitor is configured as primary. Even if you drag and drop first monitor icon to right of the second monitor icon in the settings which gives you the same result as in my case.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
java.awt.Insets[top=0,left=0,bottom=0,right=0]
java.awt.Insets[top=0,left=0,bottom=30,right=0]
ACTUAL -
java.awt.Insets[top=0,left=0,bottom=30,right=0]
java.awt.Insets[top=0,left=0,bottom=30,right=0]
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
public static void main(String[] args) {
GraphicsEnvironment ge = GraphicsEnvironment
.getLocalGraphicsEnvironment();
Toolkit toolkit = Toolkit.getDefaultToolkit();
GraphicsDevice[] gds = ge.getScreenDevices();
for (GraphicsDevice gd : gds) {
GraphicsConfiguration gc = gd.getDefaultConfiguration();
Insets insets = toolkit.getScreenInsets(gc);
System.out.println(insets);
}
}
---------- END SOURCE ----------
java version "1.6.0_16"
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) Server VM (build 14.2-b01, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]
EXTRA RELEVANT SYSTEM CONFIGURATION :
dual monitor
A DESCRIPTION OF THE PROBLEM :
java.awt.Toolkit.getScreenInsets(GraphicsConfiguration) returns incorrect values at the one settings case of the multiple monitors.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
An issue is reproduced at one monitor multiple screen configuration case:
Two screens are plugged from left to write. I mean, in screen settings they are appearing from left to write in order 1 -> 2). And second monitor acts as a primary. Taskbar on the second monitor too.
After that you can ran simple program from the test case example.
IMPORTANT: This issue occurs only at settings which mention above. There is not any problem when first monitor is configured as primary. Even if you drag and drop first monitor icon to right of the second monitor icon in the settings which gives you the same result as in my case.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
java.awt.Insets[top=0,left=0,bottom=0,right=0]
java.awt.Insets[top=0,left=0,bottom=30,right=0]
ACTUAL -
java.awt.Insets[top=0,left=0,bottom=30,right=0]
java.awt.Insets[top=0,left=0,bottom=30,right=0]
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
public static void main(String[] args) {
GraphicsEnvironment ge = GraphicsEnvironment
.getLocalGraphicsEnvironment();
Toolkit toolkit = Toolkit.getDefaultToolkit();
GraphicsDevice[] gds = ge.getScreenDevices();
for (GraphicsDevice gd : gds) {
GraphicsConfiguration gc = gd.getDefaultConfiguration();
Insets insets = toolkit.getScreenInsets(gc);
System.out.println(insets);
}
}
---------- END SOURCE ----------
- duplicates
-
JDK-8077018 Reminder of known bug with id=6899304
-
- Closed
-
- links to
-
Commit(master) openjdk/jdk/651ac3cc
-
Review(master) openjdk/jdk/23183