RFR: 8015854: [macosx] JButton's HTML ImageView adding unwanted padding [v4]
Alexey Ivanov
aivanov at openjdk.java.net
Tue Mar 1 12:25:10 UTC 2022
On Thu, 24 Feb 2022 09:26:48 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
>> DamonGuy has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Fixed incomplete comment.
>
> test/jdk/javax/swing/JButton/HtmlButtonImageTest/HtmlButtonImageTest.java line 85:
>
>> 83: robot.mouseMove(frame.getLocationOnScreen().x, frame.getLocationOnScreen().y);
>> 84: robot.mouseMove(button.getLocationOnScreen().x, button.getLocationOnScreen().y);
>> 85:
>
> I guess there is no need of this staggard mouseMove. One can move straight to "point" as done below, right?
There's no need for `mouseMove` at all. However, it helps to analyse the image visually whether the red square is centered in the button or not.
-------------
PR: https://git.openjdk.java.net/jdk/pull/7310
More information about the client-libs-dev
mailing list