【发布时间】:2016-10-20 03:26:17
【问题描述】:
这是我的代码。我想将此总值存储到数据库中
我该怎么做?如果我直接分配给双变量,则会显示错误:
double绑定值不能转换成double
DoubleBinding total = Bindings.createDoubleBinding(() ->
supplytable.getItems().stream().collect(Collectors.summingDouble(conductor::getPrice)),
supplytable.getItems());
lbltotal.textProperty().bind(Bindings.format("Total: %.2f", total));
【问题讨论】:
标签: java javafx data-binding javafx-2 javafx-8