O'Reilly logo

Java Garage by Eben Hewitt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a Timer for a Swing GUI Application

These timers are terrific, but they are meant for executing the kinds of tasks we mentioned—performing maintenance or doing some kind of transfer or other programmatic function. There is a different, related timer class for use in Swing applications. Don't start to panic because now there's even more about this when you didn't really care that much to begin with you just wanted a little timer and now you have to read all this junk but don't worry it will be okay. The functionality that is provided by the Swing timer and the java.util.Timer class are pretty much the same. There are a couple of differences.

  • The Swing timer is useful if you are building a Swing app and don't need a bunch of timers. The ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required