else if (e.getPropertyName().equals("paintTicks")) calculateGeometry();
    public void propertyChange(PropertyChangeEvent e)    {      // Check for orientation changes.      if (e.getPropertyName().equals("orientation"))	recalculateIfOrientationChanged();      else if (e.getPropertyName().equals("model"))        {	  BoundedRangeModel oldModel = (BoundedRangeModel) e.getOldValue();	  oldModel.removeChangeListener(changeListener);	  slider.getModel().addChangeListener(changeListener);	  calculateThumbLocation();        }      // elif the componentOrientation changes (this is a bound property,      // just undocumented) we change leftToRightCache. In Sun's       // implementation, the LTR cache changes on a repaint. This is strange      // since there is no need to do so. We could events here and       // update the cache.       // elif the border/insets change, we recalculateInsets.      slider.repaint();    }