title: updating a textField based on changing a slider in the javaFX
body: <p>I am not professional in javaFX. I want to see the recent changes of a slider in the textField. but it doesn't work. I desperately need help.</p>
  
  <pre><code>slider1.valueProperty().addListener(new ChangeListener&lt;Number&gt;() {
    @Override
    public void changed(ObservableValue&lt;? extends Number&gt; arg0, Number oldValue, Number newValue) 
    {     
      textField.setText(newValue.doubleValue().toString());
  
    }
  });
  </code></pre>