title: JavaFX working with threads and GUI
body: <p>I have a problem while working with JavaFX and Threads. Basically I have two options: working with <code>Tasks</code> or <code>Platform.runLater</code>. As I understand <code>Platform.runLater</code> should be used for simple/short tasks, and <code>Task</code> for the longer ones. However, I cannot use any of them.</p>
  
  <p>When I call <code>Thread</code>, it has to pop up a captcha dialog in a middle of task. While using <code>Task</code>, it ignores my request to show new dialog... It does not let me to create a new stage. </p>
  
  <p>On the other hand, when I use <code>Platform.runLater</code>, it lets me show a dialog, however, the program's main window freezes until the pop up dialog is showed.</p>
  
  <p>I need any kind of solution for this. If anyone knows how to deal with this or had some similar experience and found a solution I am looking forward to hearing from you!</p>