
Signature
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
>> > periodic = new Timer( Config.FADE_UPDATE_FREQUENCY, refresher
>>
[quoted text clipped - 7 lines]
> "periodic". I can't find a more specific definition in the API docs for
> javax.swing.Timer, so what are you referring to?
The first argument to the Timer constructor is a period (time (actually
milliseconds) between events), not a frequency (number of events per time).
Therefore Config.FADE_UPDATE_FREQUENCY should be called
Config.FADE_UPDATE_PERIOD (or _DELAY, but IMO that does not imply repeti-
on while the Timer clearly seems to be used in periodic mode here).
Christian

Signature
And in short, I was afraid.
Roedy Green - 28 Nov 2003 19:08 GMT
>Therefore Config.FADE_UPDATE_FREQUENCY should be called
>Config.FADE_UPDATE_PERIOD
That is true. However, lay people who might do the configuring are
more likely to understand the term "frequency" so I deliberately chose
the inaccurate name. I explain in the notes for it that it is
measured in seconds, not events/second.
--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
Chris Smith - 28 Nov 2003 19:11 GMT
> >> > periodic = new Timer( Config.FADE_UPDATE_FREQUENCY, refresher
> The first argument to the Timer constructor is a period (time (actually
> milliseconds) between events), not a frequency (number of events per time).
>
> Therefore Config.FADE_UPDATE_FREQUENCY should be called
> Config.FADE_UPDATE_PERIOD (or _DELAY, but IMO that does not imply repeti-
> on while the Timer clearly seems to be used in periodic mode here).
Right! Gotcha. I just wondered if I'd missed some technical detail
about the way timers worked... instead, it turns out I just wasn't
applying your comment correctly.

Signature
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation