title: Need to flush the Java EDT ( event dispatch queue )
body: <p>I have a Java app where many threads are writing to a StyledTextBox rapidly. At some point all the threads are terminated. However, the TextBox continues to receive text for a bit presumably because the dispatch queue was a bit backed up. Is it possible to somehow force the EDT to be flushed so that when the threads are terminated the updates to the TextBox end immediately?</p>
  
  <p>Thank you,
  Jim</p>