Rewritten to timers in order to access graphics methods only from Swing thread.