EventQueue.invokeLater(Runnable)works fine if something needs to run after all currently queued tasks have been run. However, sometimes these tasks run other tasks which run yet other tasks and we might want to have them run first, before invoking our task. By queuing the same task a predetermined number of times, we achieve this.
|Constructor and Description|
public InvokeLater(int count, Runnable runnable)
count- the number of times to queue the task before actually invoking it.
runnable- the task.
Copyright © 2015–2017 Fiji. All rights reserved.