Commit 0bf99ba6 authored by Philipp Spohr's avatar Philipp Spohr
Browse files

Added more decimals for double fields

parent ed90b112
......@@ -39,17 +39,19 @@ public class FormatHelper {
formatter.setMinimum(minValue);
formatter.setMaximum(maxValue);
formatter.setCommitsOnValidEdit(true);
formatter.setAllowsInvalid(true);
return formatter;
}
public static NumberFormatter getDoubleFormatter(double minValue, double maxValue) {
NumberFormat format = DecimalFormat.getInstance();
format.setMaximumFractionDigits(12);
NumberFormatter formatter = new NumberFormatter(format);
formatter.setValueClass(Double.class);
formatter.setMinimum(minValue);
formatter.setMaximum(maxValue);
formatter.setCommitsOnValidEdit(true);
formatter.setAllowsInvalid(true);
return formatter;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment