Swing includes a number of utilities that are discussed in this chapter. Some of the utilities, such as timers and the
static methods provided by the
SwingUtilities class, are used internally by Swing, whereas others, such as progress monitors and progress monitor streams, are not. All of the utilities discussed in this chapter are available for use by developers using Swing.
Timers are useful in many situations when some action must be performed periodically or at a specific time. For example, ...