A
Aaron Boxer
Hello,
I have a JSlider that I am using to set a stored Preference called DELAY. I
have added a change listener, which calls getValue() and changes the DELAY
setting when the slider is moved.
When I first run my program, I would like to set the value of the slider to
the stored DELAY value.
Hovever, when I call setValue(), my change listener gets
called, which then does a getValue(), returning 0. So, my slider is always
set to zero at startup.
How can I programmatically set the value of my slider?
Thanks!
Aaron Boxer
I have a JSlider that I am using to set a stored Preference called DELAY. I
have added a change listener, which calls getValue() and changes the DELAY
setting when the slider is moved.
When I first run my program, I would like to set the value of the slider to
the stored DELAY value.
Hovever, when I call setValue(), my change listener gets
called, which then does a getValue(), returning 0. So, my slider is always
set to zero at startup.
How can I programmatically set the value of my slider?
Thanks!
Aaron Boxer