JavaFX: Autoscroll of TextArea with appendText but without Listeners
<p>I've read the other articles on Stackoverflow on this topic. But none of them matches my problem exactly.</p>

<p>I want to log an algorithm in a TextArea. In each iteration of the algorithm the text in this TextArea should be expanded via appendText().</p>

<p>My first problem is: Where should I create the new Thread and how can the both threads communicate with each other (GUI and algorithm)?</p>

<p>In my actual design I have three important classes: The view, which holds the TextArea, the controller, which calls the algorithm and the algorithm, which takes a number of iterations and the TextArea (to call the appendText()-method on severage places in the code).</p>

<p>In this design the controller calls the algorithm, the algorithm iterates n times with a for-loop and after it terminates, the GUI shows the changes. But I want the GUI to show the changes simultaneously, when the algorithm calls the appendText()-method.</p>

<p>And my second problem is the autoscroll of the TextArea. After each appendText-call the TextArea should be scrolled completely down. But I think the solution of this problem is the same solution of my first problem.</p>

<p>I would be very grateful for some help.</p>