title: Use TimeLine to trigger a void method every certain seconds JavaFX
body: <p>Im trying to update a label every certain seconds, I tried using a normal Timer but since its in another thread it cannot make changes to the label, this is the Timer: </p>
  
  <pre><code> public void setTimer(Timer timer, int seconds, String userName, String content, VBox tabContent,ArrayList&lt;Integer&gt; countTweetsArray, Label statusLabel) {
   TabContent tabContentObj = new TabContent();
   timer.schedule(new TimerTask() {
       @Override
       public void run() {
           setTweet(userName, content);
           //tabContentObj.createStatusScreen(tabContent, countTweetsArray, remainingTweets);
           System.out.println(content+"  after  "+seconds);
           System.out.println("countTweetsArray: "+countTweetsArray.get(0));
           statusLabel.setText(countTweetsArray.get(0).toString());
           countTweetsArray.set(0, (countTweetsArray.get(0)+1));
           tabContentObj.timersMap.put(userName, timer);
       }
   }, (seconds*1000));
   }
  </code></pre>
  
  <p>I read that I can make periodic changes to a label  using TimeLine but I cant understand how it works the keyvalues and the keyframes, Is there a way to just trigger a void method without any animation involved?</p>