Search code examples
javaswingjpaneljsliderticker

How can I set JSlider ticker to start at the begining of the slider (in Java)?


The title pretty much explains my question.

I'm adding a URL to an image that explains my question better just in case i'm not clear.

I think I'm missing some obvious method, maybe you guys could help. Thanks.

enter image description here


Solution

  • Call slider.setValue(0); after you have initialized it and probably before you add it

    Make sure you have a read through How to use sliders for more details