On Fri, 28 Oct 2022 16:00:10 GMT, Rajat Mahajan <d...@openjdk.org> wrote:

>> This fix is based on a similar approach as described here  
>> https://github.com/openjdk/jdk/pull/7449#issuecomment-1068218648.
>> We rescale the line border to render the Textfield border correctly, so that 
>> all sides of the Textfield border are of same thickness.
>
> Rajat Mahajan has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   Update test/jdk/javax/swing/border/LineBorder/ScaledLineBorderTest.java
>   
>   Co-authored-by: Alexey Ivanov <alexey.iva...@oracle.com>

Checked the saved images on paint.net, the border thickness is equal and 
uniform on 4 sides (no. of pixels painted) for different scales. Both tests 
look good.

Copyright year needs to be updated for LineBorder.

-------------

Changes requested by honkar (Author).

PR: https://git.openjdk.org/jdk/pull/10681

Reply via email to