RFR: JDK-8294427 - Check boxes and radio buttons have rendering issues on Windows in High DPI env

Sergey Bylokhov serb at openjdk.org
Mon May 8 18:29:28 UTC 2023


On Tue, 2 May 2023 15:02:37 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

>> src/java.desktop/windows/classes/sun/awt/windows/ThemeReader.java line 280:
>> 
>>> 278:         readLock.lock();
>>> 279:         try {
>>> 280:             return getPoint(getTheme(widget, defaultDPI), part, state, property);
>> 
>> Why does everything else use defaultDPI, is it possible that some values depend on the DPI?
>
>> Why does everything else use defaultDPI, is it possible that some values depend on the DPI?
> 
> Because Swing's user space coordinates use the default 96dpi. Some values do depend on the DPI, yet layout code still uses the default DPI.

Then that layout code will be broken if layout will be calculated on already visible component, I guess it should take into account the GC where the component is located.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/13701#discussion_r1187753707



More information about the client-libs-dev mailing list