RFR: 8140527: JInternalFrame has incorrect title button width [v4]
Alexey Ivanov
aivanov at openjdk.org
Fri Jul 7 19:25:56 UTC 2023
On Fri, 7 Jul 2023 03:57:17 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
> > This change does not address JDK-8139392 fully. The title bar buttons in Vista theme, which are still used for MDI windows, are not square. The dimensions of the native buttons are 32×18. The dimensions of the JInternalFrame title bar buttons after your fix are 24×18; before your fix they were 28×18. That is the width of the buttons is smaller by 8 and 4 pixels. Aren't these the values subtracted from the width value fetched from Windows?
>
> Adjusted to native button dimensions of 32x18
It looks good now.
In scale of 150%, the bottom and right borders of the internal frame buttons disappear and re-appear as you drag an internal frame. But it's a completely different story. At scale of 100% or 200%, the buttons look as they should.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/14555#issuecomment-1625948961
More information about the client-libs-dev
mailing list