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

Alexey Ivanov aivanov at openjdk.org
Mon Dec 11 15:06:39 UTC 2023


On Mon, 12 Jun 2023 20:23:00 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

>>> > It may be useful to be able to run Java on previous versions though, yet it's not a priority.
>>> 
>>> Then probably it is better to add a fallback since that method was added to the win 10 after GA, and it does not exist in the early version.
>> 
>> But the earlier versions of Windows 10 are already unsupported, including the one where the `OpenThemeDataForDpi` function was added.
>> 
>> If required, the fallback could be implemented under a new bug. ~~Anyway, I don't have a strong opinion on this matter.~~
>
> I think it's *unfeasible* to provide the fallback to keep the code simpler.
> 
> If `OpenThemeDataForDpi` isn't available, we cannot get per-DPI images. Then we have to fallback to using the DPI of the main display and scale up / down all the returned values and images.

> If required, the fallback could be implemented under a new bug.

The compatibility problem was reported on the [client-libs-dev mailing list](https://mail.openjdk.org/pipermail/client-libs-dev/2023-November/016360.html). It is tracked as [JDK-8321151](https://bugs.openjdk.org/browse/JDK-8321151).

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

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


More information about the client-libs-dev mailing list