if (e.getPropertyName().equals(JScrollBar.MODEL_CHANGED_PROPERTY))
if (e.getPropertyName().equals("model"))
    public void propertyChange(PropertyChangeEvent e)    {      if (e.getPropertyName().equals(JScrollBar.MODEL_CHANGED_PROPERTY))        {	  ((BoundedRangeModel) e.getOldValue()).removeChangeListener(modelListener);	  scrollbar.getModel().addChangeListener(modelListener);	  getThumbBounds();        }      else if (e.getPropertyName().equals(JScrollBar.ORIENTATION_CHANGED_PROPERTY))        {	  incrButton.removeMouseListener(buttonListener);	  decrButton.removeMouseListener(buttonListener);	  incrButton = createIncreaseButton(scrollbar.getOrientation());	  decrButton = createDecreaseButton(scrollbar.getOrientation());          incrButton.addMouseListener(buttonListener);          decrButton.addMouseListener(buttonListener);	            calculatePreferredSize();          layoutContainer(scrollbar);		  	}      layoutContainer(scrollbar);      scrollbar.repaint();    }