-
Bug
-
Resolution: Fixed
-
P3
-
8, 9, 10, 11
-
b17
-
os_x
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8204737 | 11.0.1 | Sergey Bylokhov | P3 | Resolved | Fixed | team |
Component.getLocation() gives y coordinate (0,23) for a component at (0,0) on Mac.
But once the component is relocated to (0,0) , then Component.getLocation() gives (0,0).
Steps to reproduce:
1.Run the attached RelocationTest.java
2. Enter NewX & NewY to some value (Eg. 50,50) and click change location
3. Enter NewX & NewY as (0,0) and click change location
4. Click on Display Location : you will see (0,23)
5. Again change to some other location and change back to (0,0)
6. Click on Display Location : you will see (0,0)
But once the component is relocated to (0,0) , then Component.getLocation() gives (0,0).
Steps to reproduce:
1.Run the attached RelocationTest.java
2. Enter NewX & NewY to some value (Eg. 50,50) and click change location
3. Enter NewX & NewY as (0,0) and click change location
4. Click on Display Location : you will see (0,23)
5. Again change to some other location and change back to (0,0)
6. Click on Display Location : you will see (0,0)
- backported by
-
JDK-8204737 [macosx] Component.getLocation() gives inconsistent coordinate for a component at (0,0)
-
- Resolved
-
- relates to
-
JDK-8203371 [unix] Component.getLocation() gives inconsistent coordinate for a component at (0,0)
-
- Open
-
-
JDK-8232433 [macos 10.15] java/awt/Window/LocationAtScreenCorner/LocationAtScreenCorner.java may fail
-
- Resolved
-