Duplicate :
|
There is a number of cases where a Java callback called via JNI from AppKit thread uses invokeLater() and likes to run a code that notifies listeners/modifies UI state, which leads to all kinds of problems, like user code being called in incorrect thread group or deadlocks.
|