title: How to set auto resize when window size increase in javafx?
body: <p>When i resize window the hbox size is fix and that's why is not increasing when i increase the size of window. How to auto resize or set to the window size whenever user increase the size of window? 
  <a href="https://i.stack.imgur.com/XAUXi.png" rel="nofollow"><img src="https://i.stack.imgur.com/XAUXi.png" alt="enter image description here"></a></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;?import com.jfoenix.controls.JFXHamburger?&gt;
  &lt;?import javafx.scene.layout.AnchorPane?&gt;
  &lt;?import javafx.scene.layout.HBox?&gt;
  
  &lt;AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="600.0" prefWidth="800.0" xmlns="http://javafx.com/javafx/8.0.65" xmlns:fx="http://javafx.com/fxml/1"&gt;
     &lt;children&gt;
        &lt;HBox layoutX="-6.0" nodeOrientation="LEFT_TO_RIGHT" prefHeight="100.0" prefWidth="807.0" style="-fx-background-color: #42A5F5;"&gt;
           &lt;children&gt;
              &lt;JFXHamburger prefHeight="100.0" prefWidth="100.0" /&gt;
           &lt;/children&gt;
        &lt;/HBox&gt;
     &lt;/children&gt;
  &lt;/AnchorPane&gt;
  </code></pre>
  
  <p>Please give me suggestion how to build a better UI in javafx give me sources if you know.</p>