Assertion: applet's code | /r/CapableOf | execute on the event dispatching thread
Facets:
Source sentences:
text: Therefore, code that updates the GUI or processes events should execute on the Event dispatching thread.
text: For this reason, the milestone methods  init , start , stop , and destroy  should use the SwingUtilities method invokeAndWait (or, if appropriate, invokeLater ) so that code that refers to the Swing components is executed on the event-dispatching thread.