Java - How can I create a double JSlider? (does one exist?)

I need a slider that will allow the user to specify an interval. So, instead of having one marker like the Swing JSlider, it should have two: one to specify the minimum and another to specify the maximum value.

Here I have a visualization of what I'm talking about (I don't know if it exists, I photoshopped it):
http://img349.imageshack.us/img349/2632/slidersample9ie.jpg

 I know that with some extra code I could have two JSliders perform this function (by having one dedicated to selecting the min. value and another to the max., and not allowing them to cross) - but for stylistic reasons, I need the two markers to be on the same slide rule.

Thanks in advance for any advice on this matter!
LVL 1
spyderhydrantAsked:
Who is Participating?
 
girionisCommented:
I do not think you can do it. What you can do is to define the maximum and minimum values of the JSlider.
0
 
spyderhydrantAuthor Commented:
Well someone's done it, I'm guessing. I'll hack the source for the JSlider class if I have to. But I don't want to reinvent the wheel if it's not necessary. I'm wondering if there is some open source extension of swing (or something else open source all together) which might provide this implementation? It just seems like something a lot of programs could make use of (such as clipping video or audio).
0
 
spyderhydrantAuthor Commented:
Aha! Thank you, thank you, thank you. =)
0
 
girionisCommented:
Thank you for accepting :) Try it and let me know if this is not what you are looking for and then we can try to hack it.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.