Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SecondaryLoop instead of SwingWorker?

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.

like image 613
Rhangaun Avatar asked Apr 17 '12 18:04

Rhangaun


1 Answers

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.

like image 106
Jason Braucht Avatar answered Oct 21 '22 16:10

Jason Braucht