title: JavaFX - Bind stage size to the root node's preferred size
body: <p>I would like to automatically adjust the width/height of a <code>javafx.stage.Stage</code> whenever the preferred width/height of the <code>Scene</code>'s root node changes.  </p>
  
  <p>It's a small utility window (not resizable by the user) that contains multiple <code>javafx.scene.control.TitledPane</code>s and the window's height should increase when one of these TitledPanes is expanded (otherwise the TitlePane's content may be out of bounds).  </p>
  
  <p>Unfortunately I could only find <code>javafx.stage.Window.sizeToScene()</code>, which initially sets the window's size to the root's preferred size.  </p>
  
  <p>Is there a way to permanently bind the Stage size to the root node size?  </p>