A while ago I published an adapted version of SliderDemo3 on
This demo used to be part of the Swing tutorial, but it seems to have been lost in the current version of this tutorial.
I rewrote this demo because I see so much demo code that, I think, is not a good example of how to program in Java. It is more about how to program than about how to use sliders. My interest was mainly in improving existing demo code, not about improving the tutorial.
For example, I think any demo code related to gui programming should use the MVC pattern.
Anyway, maybe this code can be made part of a future version of the Java/Swing tutorial.