// create with range and custom formatter
final double min = slider.getMin();
final double max = slider.getMax();
final double range = max - min;
sliderBar_ = new SliderBar(min, max, this);
// show labels only at the beginning and end
sliderBar_.setNumLabels(1);
// set step size (default to 1 or continuous decimal as appropriate)