is it possible to bind a Double-Value from a JavaFX Slider to a Label? I would like to get something like this:
m_maxSlider = new Label("Right Slider Val: " + m_slider.getValue1());
m_maxSlider.textProperty().bind(Double.toString(m_slider.getValue1()));
Thank you for your help.
Assuming you have a property accessor method
value1Property()
returning aDoubleProperty
, you can doIf you want to format the string using a Formatting String, do something like