I\'m trying to bind the textProperty
of the Label
to the object\'s SimpleIntegerProperty
with help of Bindings
but it does no
You need to "tell" Bindings
, which Observable
s to observe for changes. This varargs parameter is the second parameter of the createStringBinding
method. In this case you need to pass only a single Observable
: object.numberProperty()
label.textProperty().bind(
Bindings.createStringBinding(
() -> " hello " + object.numberProperty().get() * (10 + 12)/2,
object.numberProperty()));