title: How to communicate between a thread and the GUI
body: <p>currently I' developing a desktop application with Kotlin and Java, the GUI is made with JavaFX.
  I have several basic UDP servers (Kotlin threads) listening to different ports to receive data over a network. The connections are working fine.</p>
  
  <p>I can think of several (more or less complicated) ways of communicating between the threads and the controller of the GUI, but I'm wondering if there is some kind of default approach to this, that I simply don't know.</p>
  
  <p>What I'm looking for is a simple way to send "messages" from a thread to the controller in order to change some text on a label or anything like that.</p>