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:
> ![image](https://github.com/openjdk/jdk/assets/94159358/f3e5a88a-1710-4ee0-84aa-338bc93010b2)

This pull request has now been integrated.

Changeset: bb3aac60
Author:    Tejesh R <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/bb3aac606397481cb4832cb75ec0a549d079ab13
Stats:     100 lines in 2 files changed: 99 ins; 0 del; 1 mod

8301606: JFileChooser file chooser details view "size" label cut off in Metal 
Look&Feel

Reviewed-by: aivanov, abhiscxk

-------------

PR: https://git.openjdk.org/jdk/pull/14464

Reply via email to