On Tue, 20 Jun 2023 10:04:53 GMT, Prasanta Sadhukhan <[email protected]> wrote:
> Title buttons under Widows Classic L&F got their sizes from the XP desktop > theme in which button width can be bigger than height. It is construed as XP > bug where sizes aren't updated properly so it uses height units for width for > XP and later windows. The proposed fix uses the [same > technique](https://github.com/openjdk/jdk/blob/a0595761ef35c4eec8cb84326a869b9473cd5bba/src/java.desktop/windows/classes/com/sun/java/swing/plaf/windows/WindowsInternalFrameTitlePane.java#L78-L82) > for Classic and forces title buttons to be square and to fit the frame title > in height. > > Before fix SwingSet2 demo (Windows Classic InternalFrame) >  > > After fix >  This pull request has now been integrated. Changeset: acf591e8 Author: Prasanta Sadhukhan <[email protected]> URL: https://git.openjdk.org/jdk/commit/acf591e856ce4b43303b1578bd64a8c9ab0063ea Stats: 187 lines in 3 files changed: 153 ins; 15 del; 19 mod 8140527: JInternalFrame has incorrect title button width 8139392: JInternalFrame has incorrect padding Co-authored-by: Alexey Ivanov <[email protected]> Reviewed-by: aivanov, tr ------------- PR: https://git.openjdk.org/jdk/pull/14555
