Version 1.17.0
Added a JSlider for CustomTabbedPanels, allowing for the quick selection of values over long ranges.
The slider can be backed by either doubles or integers, depending on the method called. When doubles are passed in to the factory method a DoubleBoundedRangeModel is created to store the data, and when an integer is used the data model is a DefaultBoundedRangeModel. These models can be used to modify or retrieve the value of the slider. An example of each model:
// Using doubles for the value range from 0 to 1.
panel = panel.appendSlider(identifier, label, 0.0, 0.0, 1.0);
JSlider slider = (JSlider)panel.getControl(identifier);
DoubleBoundedRangeModel model = (DoubleBoundedRangeModel)slider.getModel();
model.setValue(0.75);
double max = model.getMaximumAsDouble();
// Using integers for the value range from 10 to 50, starting at 20.
panel = panel.appendSlider(identifier, label, 20, 10, 50);
JSlider slider = (JSlider)panel.getControl(identifier);
BoundedRangeModel model = slider.getModel();
model.setValue(45);
int max = model.getMaximum();