Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
P3
-
Resolution: Fixed
-
Affects Version/s: 8, 9, 10, 11
-
Fix Version/s: 11
-
Component/s: client-libs
-
Subcomponent:
-
Resolved In Build:b17
-
OS:os_x
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8204737 | 11.0.1 | Sergey Bylokhov | P3 | Resolved | Fixed | team |
Description
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)
Attachments
Issue Links
- 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
-