Updating sliders after calling setCurrent()

Article ID: 876
Last updated: 05 Feb, 2008
Article ID: 876
Last updated: 05 Feb, 2008
Revision: 1
Views: 2555
Posted: 14 Nov, 1997
by Dean J.
Updated: 05 Feb, 2008
by Dean J.
Problem


If you call the setCurrent() method on a slider, the position of the slider on the screen doesn't change accordingly.


Cause


The setCurrent() method does not call repaint() even though the internal value for the slider has changed.


Action


After calling setCurrent() on the slider, call repaint() to cause the slider to be redrawn correctly on the screen.
This article was:   Helpful | Not helpful
Report an issue
Article ID: 876
Last updated: 05 Feb, 2008
Revision: 1
Views: 2555
Posted: 14 Nov, 1997 by Dean J.
Updated: 05 Feb, 2008 by Dean J.

Others in this category