The timer sample generates an event using the JFTimer class.
The timer sample uses the following classes:
JFTimer
JFSpinButton
JFImageButton
JFGroupbox
Figure 1.23 Timer sample
Operation method
Start/End
Pressing the [Start] button generates events and pressing the [End] button terminates the timer.
Pressing the [Start] button generates events for the number of event occurrences with the specified occurrence interval and then terminates the timer.
Event
Displays the number of generated events.
Interval
Specify the event occurrence interval in milliseconds.
Count
Specify the number of event occurrences.
Source codes
Timer sample:"Sample Storage Destinations"/jftimer/JFTimerSample.java