title: JavaFX: move element on window (stage) resize
body: <p>I have a simple application on JavaFX, it's actually consist of several panes and buttons. I can't figure out how to make a button move when the stage resize. So, I want the left bottom button will always be visible  even when resize the window.
  <a href="https://i.stack.imgur.com/I3GQ5.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/I3GQ5.gif" alt="enter image description here"></a></p>
  
  <p>here is nodes overview:</p>
  
  <p><a href="https://i.stack.imgur.com/ZLy2D.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZLy2D.png" alt="enter image description here"></a></p>
  
  <p>here is fxml:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;?import com.jfoenix.controls.JFXButton?&gt;
  &lt;?import de.jensd.fx.glyphs.fontawesome.FontAwesomeIconView?&gt;
  &lt;?import javafx.geometry.Insets?&gt;
  &lt;?import javafx.geometry.Point3D?&gt;
  &lt;?import javafx.scene.layout.AnchorPane?&gt;
  &lt;?import javafx.scene.layout.BorderPane?&gt;
  &lt;?import javafx.scene.layout.VBox?&gt;
  
  
  &lt;AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="750.0" prefWidth="1000.0" xmlns="http://javafx.com/javafx/9.0.4" xmlns:fx="http://javafx.com/fxml/1"&gt;
     &lt;children&gt;
        &lt;BorderPane layoutX="89.0" layoutY="64.0" prefHeight="400.0" prefWidth="600.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"&gt;
           &lt;left&gt;
              &lt;AnchorPane prefHeight="150.0" prefWidth="150.0" style="-fx-background-color: #4059a9 #4059a9;" BorderPane.alignment="CENTER"&gt;
                 &lt;children&gt;
                    &lt;AnchorPane prefHeight="750.0" prefWidth="75.0" style="-fx-background-color: #2b4496 #2b4496;" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="75.0" AnchorPane.topAnchor="0.0"&gt;
                       &lt;children&gt;
                          &lt;VBox alignment="CENTER" prefHeight="750.0" prefWidth="75.0" spacing="35.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"&gt;
                             &lt;children&gt;
                                &lt;JFXButton contentDisplay="GRAPHIC_ONLY" prefWidth="82.0" VBox.vgrow="ALWAYS"&gt;
                                   &lt;graphic&gt;
                                      &lt;FontAwesomeIconView fill="WHITE" glyphName="HOME" size="2em" /&gt;
                                   &lt;/graphic&gt;
                                   &lt;VBox.margin&gt;
                                      &lt;Insets top="25.0" /&gt;
                                   &lt;/VBox.margin&gt;
                                &lt;/JFXButton&gt;
                                &lt;JFXButton contentDisplay="GRAPHIC_ONLY" prefWidth="75.0"&gt;
                                   &lt;VBox.margin&gt;
                                      &lt;Insets bottom="10.0" top="600.0" /&gt;
                                   &lt;/VBox.margin&gt;
                                   &lt;graphic&gt;
                                      &lt;FontAwesomeIconView fill="WHITE" glyphName="SIGN_OUT" size="2em" /&gt;
                                   &lt;/graphic&gt;
                                   &lt;opaqueInsets&gt;
                                      &lt;Insets /&gt;
                                   &lt;/opaqueInsets&gt;
                                &lt;/JFXButton&gt;
                             &lt;/children&gt;
                          &lt;/VBox&gt;
                       &lt;/children&gt;
                       &lt;rotationAxis&gt;
                          &lt;Point3D /&gt;
                       &lt;/rotationAxis&gt;
                    &lt;/AnchorPane&gt;
                 &lt;/children&gt;
              &lt;/AnchorPane&gt;
           &lt;/left&gt;
        &lt;/BorderPane&gt;
     &lt;/children&gt;
  &lt;/AnchorPane&gt;</code></pre>
  </div>
  </div>
  </p>