On Tue, 2 May 2023 15:02:37 GMT, Alexey Ivanov <aiva...@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

Reply via email to