title: My DoubleBinding throws a StackOverflowError inside a JavaFX controller class' initialize method
body: <p>Title says it all, mostly. I took the code from another StackOverflow answer, and I tried another variation that subclasses the DoubleBinding class, but the error is still there. This is for a game, and I'm trying to make a health bar of sorts. I'm thinking that it has to do with how the FXMLLoader calls the initialize method but so far I haven't found anything.</p>
  
  <pre><code>public void initialize() {
      // ... some code
      Rectangle hpBarInside = new Rectangle(100.0, 10.0);
  
      DoubleProperty healthPercent = new SimpleDoubleProperty(1);
      DoubleBinding b1 = healthPercent.multiply(hpBarInside.widthProperty());
  
      hpBarInside.widthProperty().bind(b1);
      // ... some more code
  }
  </code></pre>