Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
Java Timer Explanation
SUBMITTED BY:
Guest
DATE:
Dec. 6, 2013, 10:08 p.m.
FORMAT:
Text only
SIZE:
315 Bytes
Raw
Download
Tweet
HITS:
832
Go to comments
Report
//How a Timer is set up
Timer timername = new Timer(1000,this);
//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)
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus