Triggering asynchronous event in gui thread
问题 TL;DR I'm looking for a way to have one thread raise an event in another EDIT: I say the word "immediate", which is, as some commenters have pointed out, impossible. What I mean is that it should happen reasonably quickly, in the low milli to nanosecond range if the gui thread is idle (which , if I do my job right, it should be). The case example: I have a project which has a Parent class. That Parent class creates a child thread 'Gui', which houses a javafx application and implements