RFR: 8301606: JFileChooser file chooser details view "size" label cut off in Metal Look&Feel [v2]
Tejesh R
tr at openjdk.org
Thu Jul 6 08:23:21 UTC 2023
> "size" label which is _RIGHT_ aligned is cut off on header cell. The issue is not only w.r.t to `JFileChooser` rather it is part of `JTable`. The root caused is found to be that in metal L&F the border insets is set to `(2,2,2,0)` meaning the right most inset value is 0. Hence when UIScaling increases the issue will be visible clearly. The fix addresses the issue by setting the right `inset` to 2 similar to other `inset` values. (Though the reason for setting it to 0 is unclear since it was initial load).
> CI testing shows green.
> After the fix at 225% scaling:
> 
Tejesh R has updated the pull request incrementally with one additional commit since the last revision:
Automated test added
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/14464/files
- new: https://git.openjdk.org/jdk/pull/14464/files/9103b080..85b2dfde
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=14464&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=14464&range=00-01
Stats: 253 lines in 2 files changed: 114 ins; 139 del; 0 mod
Patch: https://git.openjdk.org/jdk/pull/14464.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/14464/head:pull/14464
PR: https://git.openjdk.org/jdk/pull/14464
More information about the client-libs-dev
mailing list