title: JavaFx Node Relocation
body: <p>I have this piece of code that relocates a ball after it passes a certain boundary.  The problem is that it only does this once.  It is supposed to do this every time.  What am I doing wrong?</p>
  
  <pre><code>if (circle.getBoundsInParent().getMaxY() &gt; bg.getBoundsInParent().getMaxY()) {
      circle.relocate(100, 100);
  }
  </code></pre>
  
  <p>I move the ball like this:</p>
  
  <pre><code>    circle.setTranslateX(circle.getTranslateX() + deltaX);
      circle.setTranslateY(circle.getTranslateY() + deltaY);
  </code></pre>