title: How do specify a width percentage in JavaFX 2 using FXML?
body: <p>I am looking for a way to say set a maxWidth size to 80% in FXML.</p>
  
  <p>Much like in web development.</p>
  
  <p><code>&lt;VBox fx:id="testVB" prefWidth="600"&gt;</code><br></p>
  
  <p>But this does not:<br>
  <code>&lt;VBox fx:id="testVB" prefWidth="80%"&gt;</code><br></p>
  
  <p>I know that in Straight JavaFX2 non-fxml you can create insets?  What is the best way to do this outside of code in FMXL?</p>
  
  <p>Thanks!</p>
  
  <p>Riley</p>