Here are three Swing urban legends:
  • Create threads for long tasks from the event dispatch thread.
  • Use SwingUtilities for running tasks on the event dispatch thread.
  • Synchronize methods for synchronization.

See complete detail from here.

Advertisements