colin combe - 2007-05-09

Hi,
I think you have a bug in the 2 constructors for JRangeSlider that take minimum, maximum, lowValue and highValue parameters.

Each of these create the BoundedRangeModel by calling:
 
   new DefaultBoundedRangeModel(lowValue,highValue,minimum,maximum)

[lines 89 and 104 of JRangeSlider]

However, the constructor for DefaultBoundedRangeModel is phrased in terms of value and extent, not lowValue and highValue. The calls should be:

   new DefaultBoundedRangeModel(lowValue, highValue - lowValue, minimum, maximum)

JRangeSlider was exactly what I was looking for - thanks for an excellent little widget.
cheers,
colin