1 |
/* BasicSliderUI.java -- |
/* BasicSliderUI.java -- |
2 |
Copyright (C) 2004 Free Software Foundation, Inc. |
Copyright (C) 2004, 2005 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
222 |
public void propertyChange(PropertyChangeEvent e) |
public void propertyChange(PropertyChangeEvent e) |
223 |
{ |
{ |
224 |
// Check for orientation changes. |
// Check for orientation changes. |
225 |
if (e.getPropertyName().equals(JSlider.ORIENTATION_CHANGED_PROPERTY)) |
if (e.getPropertyName().equals("orientation")) |
226 |
recalculateIfOrientationChanged(); |
recalculateIfOrientationChanged(); |
227 |
else if (e.getPropertyName().equals(JSlider.MODEL_CHANGED_PROPERTY)) |
else if (e.getPropertyName().equals("model")) |
228 |
{ |
{ |
229 |
BoundedRangeModel oldModel = (BoundedRangeModel) e.getOldValue(); |
BoundedRangeModel oldModel = (BoundedRangeModel) e.getOldValue(); |
230 |
oldModel.removeChangeListener(changeListener); |
oldModel.removeChangeListener(changeListener); |