RFR: 8279614: The left line of the TitledBorder is not painted on 150 scale factor [v7]

Alexey Ivanov aivanov at openjdk.java.net
Mon Mar 28 15:46:51 UTC 2022


On Wed, 23 Mar 2022 18:24:05 GMT, Alisen Chung <achung at openjdk.org> wrote:

>> Changed the drawing area to be increased by 0.5 on the left side to prevent clipping
>
> Alisen Chung has updated the pull request incrementally with one additional commit since the last revision:
> 
>   scale stroke width at higher scalings

It doesn't draw the border correctly when run with `-Dsun.java2d.uiScale=3`:

![Titled Border rendered at 300%](https://user-images.githubusercontent.com/70774172/160433797-df0c54b8-38e3-4902-aef3-db3daf7c7172.png)

All the four images look identically but rendering is not as expected.

On the left and the top, the shadow is 3-pixel wide, the highlight is 2-pixel wide. There's no highlight on the right and bottom side. However, there are 3 light pixels above and below the right-side shadow line, there are also 3 light pixels to the right of the bottom shadow line.

It still has the same bug but at 125% now: the third border has no shadow on the left.

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

PR: https://git.openjdk.java.net/jdk/pull/7449



More information about the client-libs-dev mailing list