document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1.  
  2. import javafx.application.Platform;
  3.  
  4. import javafx.concurrent.Task;
  5.  
  6.    Task <Void> task=new Task<Void>() {
  7.  
  8.                 @Override
  9.  
  10.                 protected Void call() throws Exception {
  11.  
  12.                     System.out.println("Metodo.call()");
  13.  
  14.                     return null;// retorno nul
  15.  
  16.                   }    
  17.  
  18.             };
  19.  
  20.             Platform.runLater(task);
');