Understand threads and concurrency

  1. Explore threads and concurrent execution, read whole trail here
  2. Concurrency in Swing GUI
  3. Identify what part of your code runs in what thread. Check it programmatically.