1
Dies ist mein Code. Ich möchte diesen Gesamtwert in der Datenbank speichernKonvertieren Sie die doppelte Bindung in den doppelten Wert in JavaFX
Wie kann ich das tun? Wenn ich direkt an Doppel Variablen zuweisen zeigt es Fehler:
double binding value cannot converted into double
DoubleBinding total = Bindings.createDoubleBinding(() ->
supplytable.getItems().stream().collect(Collectors.summingDouble(conductor::getPrice)),
supplytable.getItems());
lbltotal.textProperty().bind(Bindings.format("Total: %.2f", total));