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 for Classic and forces title buttons to be square and to fit the frame title in height.
Before fix  After fix  ------------- Commit messages: - Test fix - 8140527: JInternalFrame has incorrect title button width - Merge branch 'master' of github.com:prsadhuk/jdk - Merge remote-tracking branch 'upstream/master' - Merge remote-tracking branch 'upstream/master' - Revert "Fix" - Fix Changes: https://git.openjdk.org/jdk/pull/14555/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=14555&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8140527 Stats: 114 lines in 3 files changed: 113 ins; 0 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/14555.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/14555/head:pull/14555 PR: https://git.openjdk.org/jdk/pull/14555
