RFR: 8288882: JFileChooser - empty (0 bytes) file is displayed as 1 KB [v11]

Abhishek Kumar duke at openjdk.org
Fri Jul 22 07:42:07 UTC 2022


On Thu, 21 Jul 2022 11:00:17 GMT, Abhishek Kumar <duke at openjdk.org> wrote:

>> JFileChooser - empty file size issue fixed. 
>> For empty file, now the size 0 bytes.
>> Manual Test Case "ZeroFileSizeCheck.java" created.
>
> Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Deleted ZeroFileSizeCheck file and updated text from 999.0 to 999 in FileSizeCheck file

![GTK_LAF](https://user-images.githubusercontent.com/107542245/180388673-72e06cc4-840c-474b-8821-2a735f27e0d8.png)
![Nimbus_LAF](https://user-images.githubusercontent.com/107542245/180388679-4a6bf8ce-ff09-48e7-8065-b5be046770c1.png)

Attached the screenshot for GTK LAF and Nimbus LAF for JFileChooser. 
In GTK LAF, JFileChooser doesn't show the file size.
In Nimbus, JFileChooser shows file sizes correctly.

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

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



More information about the client-libs-dev mailing list