Skip to content

RangeSlider

lcaron edited this page Jul 7, 2015 · 1 revision

Introduction

https://raw.githubusercontent.com/lcaron/opal/wiki/images/rangeSlider.png

The Range Slider is a con­t­rol that lets you input two values, typically an upper and a lower bound. Normal sliders just lets you input one value.

Usage

Because the look and feel is very close to the Scale widget, I've decided to reproduce it.

The only difference concerns the "selection" getters and setters, because there is 2 values.

Example

An example called RangeSliderSnippet.java is located in the directory src/test/java/org/mihalis/opal/rangeSlider.

This example is also available here : https://github.com/lcaron/opal/blob/master/src/test/java/org/mihalis/opal/rangeSlider/RangeSliderSnippet.java

Clone this wiki locally