You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i've built an app with tornadofx to save double values into a database with an editable tableview. Everything works fine so far, but since the customers are germans i'm trying to get the javafx.utils to parse "," instead of "." for double values.
Is there actually any possibility or is it possible to add support for localized number formats? Setting a Locale on NumberFormat doesnt work, since the parsing happens within tornadofx.
The actual error:
java.lang.NumberFormatException: For input string: "7,5" at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043) at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110) at java.lang.Double.parseDouble(Double.java:538) at java.lang.Double.valueOf(Double.java:502) at javafx.util.converter.DoubleStringConverter.fromString(DoubleStringConverter.java:49) at javafx.util.converter.DoubleStringConverter.fromString(DoubleStringConverter.java:35) at javafx.scene.control.cell.CellUtils.lambda$createTextField$1(CellUtils.java:248)
The text was updated successfully, but these errors were encountered:
Hello,
i've built an app with tornadofx to save double values into a database with an editable tableview. Everything works fine so far, but since the customers are germans i'm trying to get the javafx.utils to parse "," instead of "." for double values.
Is there actually any possibility or is it possible to add support for localized number formats? Setting a Locale on NumberFormat doesnt work, since the parsing happens within tornadofx.
The actual error:
java.lang.NumberFormatException: For input string: "7,5" at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043) at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110) at java.lang.Double.parseDouble(Double.java:538) at java.lang.Double.valueOf(Double.java:502) at javafx.util.converter.DoubleStringConverter.fromString(DoubleStringConverter.java:49) at javafx.util.converter.DoubleStringConverter.fromString(DoubleStringConverter.java:35) at javafx.scene.control.cell.CellUtils.lambda$createTextField$1(CellUtils.java:248)
The text was updated successfully, but these errors were encountered: