On Wed, 14 Jun 2023 21:08:30 GMT, Alexey Ivanov <[email protected]> wrote:

> > 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..
> 
> Java L&F may not follow what native File Explorers / Navigators do — after 
> all, it's a Java Look-and-Feel.
> 
> On Windows, Explorer displays the Size header left-aligned as all other 
> headers, yet the values in the Size column are right-aligned. If Swing 
> doesn't allow different alignment for the header cell and data cells in a 
> column, then we should preserve right-alignment.

Hmm, I do have a fix if we are planning to make it similar to native (Window, 
Linux and MacOS). And FYI, windows native API 
[getdetailsof](https://learn.microsoft.com/en-us/windows/win32/api/shobjidl_core/nf-shobjidl_core-ishellfolder2-getdetailsof)
 gives the alignment for columns irrespective of header/data, which is RIGHT 
alignment for `Size` column. If it is still debatable, then will it be better 
to open a new bug on Size alignment issue and handle it there?

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

PR Comment: https://git.openjdk.org/jdk/pull/14464#issuecomment-1592396004

Reply via email to