title: JavaFx - Updating GUI
body: <p>All I wanted is to update a label as my program is running. I am reading some files and I wanted it to display the name of the file is was reading. </p>
  
  <p>However, it only displays the last file using the code below (basically GUI doesn't respond until the whole process is completed):</p>
  
  <pre><code>static Text m_status_update = new Text(); //I declared this outside the function so dont worry
  m_status_update.setText("Currently reading " + file.getName());
  </code></pre>
  
  <p>I got around 4-5 files and I just want to display the name.</p>
  
  <p>I saw a similar question <a href="https://stackoverflow.com/questions/13227809/displaying-changing-values-in-javafx-label">Displaying changing values in JavaFx Label</a>
  , the best answer recommended the following:</p>
  
  <pre><code>Label myLabel = new Label("Start"); //I declared this outside the function so dont worry
  myLabel.textProperty().bind(valueProperty);
  </code></pre>
  
  <p>However the valueProperty is a StringProperty and I am stuck converting a string into a string property. </p>
  
  <p>Also, I saw this <a href="https://stackoverflow.com/questions/22945117/refresh-label-in-javafx/22945699#22945699">Refresh label in JAVAFX</a> , but the OP could update the label based on action. I really dont have any action going on?</p>