243 |
model = new DefaultBoundedRangeModel(minimum, 0, minimum, maximum); |
model = new DefaultBoundedRangeModel(minimum, 0, minimum, maximum); |
244 |
if (orientation != HORIZONTAL && orientation != VERTICAL) |
if (orientation != HORIZONTAL && orientation != VERTICAL) |
245 |
throw new IllegalArgumentException(orientation + " is not a legal orientation"); |
throw new IllegalArgumentException(orientation + " is not a legal orientation"); |
246 |
this.orientation = orientation; |
setOrientation(orientation); |
247 |
changeListener = createChangeListener(); |
changeListener = createChangeListener(); |
248 |
model.addChangeListener(changeListener); |
model.addChangeListener(changeListener); |
249 |
updateUI(); |
updateUI(); |