Java Swing Timer cannot be paused? -


is there anyway pause java swing timer, i'm planning implement feature in java 2d environment , want ability pause movement graphics.

timers cannot paused. you'll have add functionality yourself. here's example pauses timer on mouse over:

http://www.java2s.com/code/java/swing-jfc/anappletthatcountsdownfromaspecifiedtime.htm


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -