On Wed, 14 Jun 2023 09:17:06 GMT, Tejesh R <[email protected]> wrote: > "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: > 
Although this might be a bug in insets but for this issue, I guess in native filechooser, "Size" is left aligned which is what we follow.. I think in Java Windows L&F too, it is right aligned which I think we should rectify otherwise it can come as another bug that we are not following native look.. ------------- PR Comment: https://git.openjdk.org/jdk/pull/14464#issuecomment-1590846544
