public void propertyChange(PropertyChangeEvent evt){
  String name=evt.getPropertyName();
  if (name == "width" || name == "preferredWidth") {
    invalidateWidthCache();
    fireColumnMarginChanged();
  }
}

public void propertyChange ( PropertyChangeEvent evt ) { String name = evt . getPropertyName ( ) ; if ( name == "width" || name == "preferredWidth" ) { invalidateWidthCache ( ) ; fireColumnMarginChanged ( ) ; } }
property change listener change method . used to track changes to the column width or preferred column width .
