Looking for slide bar with two knobs in Java
Asked Answered
G

3

8

I am looking for slide bars with two knobs for a user to move them separately or both together, similar to the one in the picture to use in Java. Any sidebar with two knobs (two indicators) would do. Does it exist?

enter image description here

Gaiseric answered 26/6, 2013 at 23:20 Comment(3)
Try taking a look at this. I've used it in the past and it works well..Throne
Cool component. This is getting ridiculous. Every question is getting closed. Somebody tell me how this question should be worded so it doesn't break the idiotic guidelines for asking a question? In 10 years of answering questions on the forums I have no idea where to look to find a component like this. I have no idea what the name of the component would be. Where do I go to get help??? How does pointing a person to a website or library generate opinionated answers?Rupp
Thanks for the support. I am disparately in the need of this answer and these guys closed my question!Gaiseric
P
1

That's called a range slider. Here it is discussed in another thread: Range Slider in Java

Also, here's an API which provides a JRangeSlider swing object: http://prefuse.org/doc/api/prefuse/util/ui/JRangeSlider.html

I've never used it, but it looks like just what you want.

Pinfeather answered 2/7, 2013 at 18:22 Comment(1)
Is there a version with 3 knobs (Left, Center and Right value)?Convict
S
0

i would suggest checking out JIDE (open source components), i know for a fact there is a range slider with two knobs

Simonasimonds answered 10/7, 2013 at 19:45 Comment(1)
Is there a version with 3 knobs (Left, Center and Right value)?Convict
A
0

Sorry for late answer:)

I recently implemented JRangeSlider without custom painting code, thus it will always look like normal JSlider, but with two knobs.

https://github.com/andronix3/SwingHacks/blob/master/com/smartg/swing/JRangeSlider.java

Alumroot answered 1/7, 2015 at 20:22 Comment(1)
Is there a version with 3 knobs (Left, Center and Right value)?Convict

© 2022 - 2024 — McMap. All rights reserved.