title: JavaFx how can my model update View?
body: <p>I'm new to JavaFx. I made my fxml file and I created my Controller. Everything works well for the moment.
  In my model, I have threads that download some files from the internet. And I want to notify the advancement to the UI (to update the progress indicator component).</p>
  
  <p>How can I do it? </p>
  
  <p>This is the Model method called by the Controller.
  I want to inform the user of the advancement of the process.
  For example : +10% every time a thread finishes.</p>
  
  <pre><code> public void download(){
      ExecutorService pool = Executors.newSingleThreadExecutor();
      List&lt;Future&lt;String&gt;&gt; futures = new ArrayList&lt;Future&lt;String&gt;&gt;();
      futures.add(pool.submit(new Downloader(URL)));
      futures.add(pool.submit(new Downloader(URL)));
      pool.shutdown();
      pool.awaitTermination(Long.MAX_VALUE, TimeUnit.MILLISECONDS);
      ... Manipulate downloaded files.
   }
  </code></pre>
  
  <p>How can I do it ? ^^ </p>