public void propertyChange(PropertyChangeEvent pce){
  if (pce.getPropertyName() == MapBean.BackgroundProperty) {
    mapBean.setBckgrnd((Paint)pce.getNewValue());
  }
}

public void propertyChange ( PropertyChangeEvent pce ) { if ( pce . getPropertyName ( ) == MapBean . BackgroundProperty ) { mapBean . setBckgrnd ( ( Paint ) pce . getNewValue ( ) ) ; } }
propertychangelistener method , to listen for the source map ' s background changes . act on if necessary .
