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

Naoto Sato naoto at openjdk.org
Thu Jun 30 16:40:39 UTC 2022


On Thu, 30 Jun 2022 16:30:04 GMT, Andy Goryachev <duke at openjdk.org> wrote:

>> Another option is to use `java.text.CompactNumberFormat` which can handle those K/M/B suffixes nicely.
>
> Would java.text.CompactNumberFormat work for java 8?

It is introduced in JDK12. If this has to be backported to 8, that's not an option.

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

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



More information about the client-libs-dev mailing list