<AWT Dev> [9] Review request for 8147440 HiDPI (Windows): Swing components have incorrect sizes after changing display resolution

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Wed Feb 10 13:32:47 UTC 2016


On 05.02.16 10:52, Alexandr Scherbatiy wrote:

>    The first approach is to rescale only frame size on native level so
>      newNativeWindow.size = newScale *  javaWindow.size

What location will be in this approach? Does the native app work in the 
similar way(changes the size only)?

>    This allows to leave the nativeWindow.location unchanged but the rule
>      nativeWindow.location = newScale * javaWindow.location
>    will be broken in this case.
>
>    The proposed fix explicitly rescales javaWindow.location in
> WWindowPeer so
>    nativeWindow.location = prevScale * prevJavaWindow.location =
> newScale * newJavaWindow.location
>
>   Thanks,
>   Alexandr.
>


-- 
Best regards, Sergey.


More information about the awt-dev mailing list