title: javafx background Task is not running more than once
body: <p>The following is my Task initialization</p>
  
  <pre><code>        final Task&lt;Void&gt; vt=voiceTask();
          Button btn = new Button();
          btn.setText("Say");
          btn.setOnAction(new EventHandler&lt;ActionEvent&gt;() {
              @Override
              public void handle(ActionEvent event) {
                  new Thread(vt).start();
              }
          });
  </code></pre>
  
  <p>And here is the task coding</p>
  
  <pre><code>public Task&lt;Void&gt; voiceTask() {
      return new Task&lt;Void&gt;(){
          @Override
          protected Void call() throws Exception {
              HelloWorld hw=new HelloWorld();// HelloWorld is simple .java class getting voice through sphinx
              updateMessage(hw.Hello());
              return null;
  
          }
  
      };
  }     
  </code></pre>
  
  <p>Now on clicking the btn Button for the first time,the task functions normally, but on clicking for subsequent times the task is not called.</p>
  
  <p>I want task to be called on every click.
  Please advice me how to modify my code to do so...</p>