From the Java tutorial:
Note that the
Swing
timer's task is performed in the event dispatch thread. This means that the task can safely manipulate components, but it also means that the task should execute quickly. If the task might take a while to execute, then consider using aSwingWorker
instead of or in addition to the timer.
What does it mean by "quickly"? I mean that is not exact, less than a minute is quickly or what?
for example if I want to make an animation(1 minute) with some panels, via moving them, change their transparency and...and the user is just going to see the panels and is not going to work with them (no I/O), now is Timer a good idea for such situation ?