Chapter 10 Examples
-
- Timers
- Timers.java
demonstrates the techniques used to create and
configure a Timer.
-
- Digital Clock
- DigitalClock.java
defines a custom component that uses a Timer to
display the current time. Clocks.java is an
application that displays a DigitalClock. The
DigitalClock class has been updated to use the
new
getStringBounds
method of Font, thus removing the use of
FontMetrics.
-
- Progress Bar
- Progress.java
demonstrates the techniques used to create and
configure a JProgressBar.
-
- Progress Bar Model
- ProgressModel.java
links a progress bar and slider to the same
model.
-
- Progress Monitor
- Monitor.java
demonstrates the techniques used to create and
configure a ProgressMonitor. Updated from the
book to support a change in the spelling of
isCanceled.
-
- Progress Monitor Input Stream
- ProgStream.java
demonstrates the techniques used to create and
configure a ProgressMonitorInputStream. This
example deals with the issue of multi-threading
background operations to allow painting and event
handling. Updated from the book to support a
change in the spelling of
isCanceled.
|