title: How to pass data from Java to FXML?
body: <p>In the Controller(or maybe the Main or another file, I'm not sure how all this works), we have the following:</p>
  
  <pre><code>String foo = "Foo.";
  </code></pre>
  
  <p>And in Scene Bilder-generated FXML, something like this:</p>
  
  <pre><code>&lt;Button mnemonicParsing="false" prefHeight="25.0" prefWidth="61.0" text="Browse" /&gt;
  </code></pre>
  
  <p>How do I make the value of foo appear as the text on the button? And where should I store it, the controller or somewhere else? I'm still perplexed about how do the Main file, the controller(s), and FXML files exactly come together.</p>