Java Timer Explanation


SUBMITTED BY: Guest

DATE: Dec. 6, 2013, 10:08 p.m.

FORMAT: Text only

SIZE: 315 Bytes

HITS: 832

  1. //How a Timer is set up
  2. Timer timername = new Timer(1000,this);
  3. //So what does what? The 1000 is the Interval in Milliseconds so the Interval for this Timer would be getting activated every second. The this tells it which actionPerform void it uses. (this means it uses the void of the class it is in)

comments powered by Disqus