hello,
I would use CardLayout for changing the labels. I have made the experience, that this works better (and is less risky) than repainting the label yourself.
1.) create a CardLayout that contains every label as a component (see the Swing Tutorial on CardLayout). you can change the content of the CardLayout dynamically, or create a new one later on.
2.) attach the appropriate listener to the JSlider. this listener will call the show-method on the CardLayout to switch to the specific label. as you can switch to the next and to the previous component of a CardLayout (thus, they are ordered), this listener won't even have to bother whith the name of the
cards. At least, that's what I'm thinking right now, without having implemented anything.
hope this did help you a bit
Chantal