RFR: 8279614: The left line of the TitledBorder is not painted on 150 scale factor [v15]
Alisen Chung
achung at openjdk.java.net
Fri May 20 16:52:10 UTC 2022
On Tue, 17 May 2022 20:29:16 GMT, Phil Race <prr at openjdk.org> wrote:
>> Alisen Chung has updated the pull request incrementally with one additional commit since the last revision:
>>
>> renamed test, renamed some methods, updated error messages, updated test
>
> src/java.desktop/share/classes/javax/swing/border/EtchedBorder.java line 164:
>
>> 162: stkWidth = (int) Math.floor(Math.min(at.getScaleX(),at.getScaleY()));
>> 163: ((Graphics2D) g).setStroke(new BasicStroke((float) stkWidth));
>> 164: }
>
> This reminds me .. did you try STROKE_PURE ? If so does it make any difference ?
> https://docs.oracle.com/en/java/javase/17/docs/api/java.desktop/java/awt/RenderingHints.html#KEY_STROKE_CONTROL
I don't think setting it to STROKE_PURE changed anything
-------------
PR: https://git.openjdk.java.net/jdk/pull/7449
More information about the client-libs-dev
mailing list