I have a SwingWorker
with the implementation:
public Void doInBackground() throws InterruptedException
{
while (true)
{
while(_update)
{
}
}
}
If _update is set to false, is it safe to let the EDT perpetually go on a loop? Or should I let it sleep every second?
-- EDIT
It looks like I'm not using SwingWorker as it's supposed to be used. Thanks all. I'll stick to creating SwingWorkers as I need them.