-
Enhancement
-
Resolution: Fixed
-
P4
-
6
-
b19
-
generic
-
generic
-
Not verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2152912 | OpenJDK6 | Andrei Dmitriev | P3 | Resolved | Fixed | b03 |
But in the PIT build, the above 2 cases are handled in the same way where the window is placed at the location returned by GE.getCenterPoint(). So even when invisible component belongs to the sec screen, the window will always appear at the center of the primary monitor since GE.getCenterPoint() will always return the center of primary monitor on Win32.
Here is the PIT build:
java version "awt.pit-jcg-win-03-2005-02-22-Tue-int.mustang"
Java(TM) 2 Runtime Environment, Standard Edition (build awt.pit-jcg-win-03-2005-02-22-Tue-int.mustang)
Java HotSpot(TM) Client VM (build 1.6.0-ea-b24, mixed mode)
This is reproducible with the above PIT build as well as older builds on all platforms. I have marked it as PIT bug since the bug 6177452 is only partially fixed in the above PIT build.
I have attached a sample test. Run the sample test. It would popup a frame which is placed in relative to an invisible as well as null component. Compare the locations with mid point / center point. If it always matches the center point, the bug is reproduced. Try this on a multi-monitor system. Ideally Frame should appear on primary initially and secondary later on. If all the frames appear on the same screen one after other, bug is reproduced.
###@###.### 2005-2-24 15:21:54 GMT
- backported by
-
JDK-2152912 Window.SetLocationRelativeTo: treat the given null and invisible component separately
- Resolved
- relates to
-
JDK-6920172 Test java/awt/Multiscreen/LocationRelativeToTest/ must be changed in OpenJDK6
- Resolved
-
JDK-6177452 setLocationRelativeTo() places the window incorrectly on multi-mon-xinerama when comp is invisible
- Closed
-
JDK-6211719 Window.setLocationRelativeTo() does not work properly for multi-monitor virtual screen configs
- Closed
-
JDK-6446582 Window.setLocationRelativeTo(Component) broken for non-xinerama multi-head sys
- Closed
-
JDK-6702119 window.getLocationOnScreen() returns a wrong value when it is displayed to a hidden component
- Closed