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

Alexey Ivanov aivanov at openjdk.java.net
Wed May 4 16:29:46 UTC 2022


On Mon, 2 May 2022 19:53:44 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:
> 
>   updated test

src/java.desktop/share/classes/javax/swing/border/EtchedBorder.java line 179:

> 177: 
> 178:         g.translate(-((int) (at.getScaleX()*x+at.getTranslateX())),
> 179:                 -((int) (at.getScaleY()*y+at.getTranslateY())));

You used different values to move the translate at lines 170-171: `Math.ceil` is missing here. It's better to save the values above to make sure the translate is restored correctly.

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

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



More information about the client-libs-dev mailing list