title: Cannot start JavaFX Task using Thread.start()
body: <p>Well I am currently studying JavaFX and as a total beginner(but not in Java) I started reading the official tutorials in Java and I'm currently studying <a href="http://docs.oracle.com/javafx/2/threads/jfxpub-threads.htm" rel="nofollow">Concurrency in JavaFX</a>. and I tried to create my first JavaFx <code>Task</code> Object and start it. This what I have tried so far </p>
  
  <pre><code>Task&lt;Integer&gt; task = new Task&lt;Integer&gt;(){
      @Override protected Integer call() throws Exception{
          int iterations;
          for(iterations = 0; iterations &lt; 10000; iterations++){
              if(isCancelled()){
                  break;
              }
              System.out.println("Iteration " + iterations);
              Thread.sleep(3000);
          }
          return iterations;
      }
  };
  
  //start the background task
  Thread th = new Thread(task);
  th.setDaemon(true);
  System.out.println("Starting background task...");
  th.start();
  System.out.println("Background task started...");
  </code></pre>
  
  <p>but the task doesn't start. I don't see any messages in my console. Is there something I missed?</p>