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

Alexey Ivanov aivanov at openjdk.org
Thu Jul 7 20:07:28 UTC 2022


On Thu, 7 Jul 2022 04:43:44 GMT, Abhishek Kumar <duke at openjdk.org> wrote:

>> src/java.desktop/share/classes/com/sun/swing/internal/plaf/basic/resources/basic.properties line 80:
>> 
>>> 78: 
>>> 79: # File Size Units
>>> 80: FileChooser.fileSizeBytes={0} bytes
>> 
>> should it be "{0} B" to be consistent with the rest of the formatting strings?
>
> It is similar to the file size shown in native tools i.e. "bytes" in ubuntu platform.

Shall we handle "1 byte"?

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

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



More information about the client-libs-dev mailing list