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

Abhishek Kumar duke at openjdk.org
Wed Jul 20 08:24:08 UTC 2022


On Wed, 20 Jul 2022 08:17:09 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:
> 
>   File Size shows upto 1 decimal value

File size shown in native is upto 1 decimal value. Now JFileChooser also shows filesize upto 1 decimal value similar to native.
There is a change in conversion factor from 1024 to 1000 to show file size as per native. 
![Filesize_Ubuntu](https://user-images.githubusercontent.com/107542245/179933188-4ddd6d9f-8da7-4a8e-8884-652d1bf93c93.png)
![FileSize_JFileChooser](https://user-images.githubusercontent.com/107542245/179933210-12cb3c9f-8d03-4424-90f7-65dbac930034.png)

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

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



More information about the client-libs-dev mailing list