 <p>Since it's invisible, it wont move to the top. You have to remove it with something like:</p> <pre><code>// remove vbox.getChildren().remove(...) </code></pre> <p>Once you've removed the element you want invisible then, the other element should move to the top.</p>