diff options
author | Michael Koch <konqueror@gmx.de> | 2004-12-14 14:00:35 +0000 |
---|---|---|
committer | Michael Koch <konqueror@gmx.de> | 2004-12-14 14:00:35 +0000 |
commit | ab8b36e5530674220c47cf67fa8842698c51400b (patch) | |
tree | b3356c0b39c6194628f688b5de2befa5176cf397 | |
parent | f1425c30fb9ba5bd8b4998c910b849af7c59f8f4 (diff) | |
download | classpath-ab8b36e5530674220c47cf67fa8842698c51400b.tar.gz |
2004-12-14 Michael Koch <konqueror@gmx.de>
* java/text/NumberFormat.java (getIntegerInstance):
Make sure that doubles get formatted as integers.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | java/text/NumberFormat.java | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -1,5 +1,10 @@ 2004-12-14 Michael Koch <konqueror@gmx.de> + * java/text/NumberFormat.java (getIntegerInstance): + Make sure that doubles get formatted as integers. + +2004-12-14 Michael Koch <konqueror@gmx.de> + * javax/swing/JTree.java (collapsePath): New method. (collapseRow): Likewise. diff --git a/java/text/NumberFormat.java b/java/text/NumberFormat.java index 368292686..4106ce7b0 100644 --- a/java/text/NumberFormat.java +++ b/java/text/NumberFormat.java @@ -478,6 +478,7 @@ public abstract class NumberFormat extends Format implements Cloneable public static NumberFormat getIntegerInstance(Locale locale) { NumberFormat format = computeInstance (locale, "numberFormat", "#,##0"); + format.setMaximumFractionDigits(0); format.setParseIntegerOnly (true); return format; } |