title: JavaFX BorderPane Layout (Stretch Left and Right Pane)
body: <p>I am using a BorderPane to implement a layout in JavaFX. </p>
  
  <p>Suppose the BorderPane's maxPrefWidth is set to 1000. There is a button in the left pane, and a button in the right pane. In the center pane, there is another button with an unknown size.</p>
  
  <ul>
  <li>If: the middle element's width is 500, then the left and right nodes
  should be 250 in width.</li>
  <li>If: the middle element's width is 600, then the left and right nodes
  should be 200 in width.</li>
  </ul>
  
  <p>Is there a way to tell the left and right pane to automatically grow (horizontally) until the center node's is hit?</p>