title: JavaFX Buttonbar Layouting - orientation and space distribution
body: <p>I have this Buttonbar with some Buttons and a Slider (in SceneBuilder):</p>
  
  <p><a href="https://i.stack.imgur.com/M48Kw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/M48Kw.png" alt="Buttonbar"></a></p>
  
  <h2>Goal</h2>
  
  <p>all Buttons on the left, with uniform widths - small spacing - Slider fills remaining width</p>
  
  <p>-> Slider needs to opt out of the <code>ButtonUniformSize</code> using fxml, I only found the programmatic way <code>setButtonUniformSize</code></p>
  
  <p>I also found this question:
  <a href="https://stackoverflow.com/questions/32426848/javafx-align-buttons-inside-buttonbar-using-scenebuilder-or-fxml">JavaFX: Align Buttons inside ButtonBar (using SceneBuilder or fxml)</a> but it's about configuring and aligning the Buttons individually, which I don't want.</p>
  
  <p>In the Screenshot below you can see that the Orientation is set to <code>LEFT_TO_RIGHT</code> and I just can't understand why it aligns from right to left?</p>
  
  <p><a href="https://i.stack.imgur.com/aLyQp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aLyQp.png" alt="Buttonbar Properties"></a></p>
  
  <p>This is the relevant part of code generated by the SceneBuilder:</p>
  
  <pre><code>&lt;VBox prefHeight="600.0" prefWidth="640.0" xmlns="http://javafx.com/javafx/8.0.141" xmlns:fx="http://javafx.com/fxml/1"&gt;
    &lt;children&gt;
      &lt;MenuBar VBox.vgrow="NEVER"&gt;
        [...]
      &lt;/MenuBar&gt;
        &lt;ButtonBar buttonMinWidth="25.0" nodeOrientation="LEFT_TO_RIGHT" VBox.vgrow="NEVER"&gt;
          &lt;buttons&gt;
              &lt;Button mnemonicParsing="false" styleClass="stop" /&gt;
              &lt;Button mnemonicParsing="false" styleClass="playPause" /&gt;
              &lt;Slider styleClass="volume" /&gt;
          &lt;/buttons&gt;
           &lt;padding&gt;
              &lt;Insets bottom="5.0" left="5.0" right="5.0" top="5.0" /&gt;
           &lt;/padding&gt;
        &lt;/ButtonBar&gt;
        &lt;FolderView VBox.vgrow="ALWAYS" /&gt;
    &lt;/children&gt;
  &lt;/VBox&gt;
  </code></pre>