7

From the documentation for SecondaryLoop, it is not clear when you should use this new feature instead of a SwingWorker, a few examples of interesting cases would be useful.

mKorbel
  • 109,525
  • 20
  • 134
  • 319
Rhangaun
  • 1,430
  • 2
  • 15
  • 34

1 Answers1

6

The intent of SecondaryLoop is basically the same as SwingWorker. However, using SecondaryLoop can be less hairy than chaining together multiple SwingWorkers.

Take a look at Hidden Java 7 Features – SecondaryLoop for a detailed explanation & example.

Jason Braucht
  • 2,358
  • 19
  • 31