public void propertyChange(PropertyChangeEvent evt){
  if (evt.getPropertyName() == MapBean.LayersProperty) {
    listenToLayers((Layer[])evt.getNewValue());
  }
}

public void propertyChange ( PropertyChangeEvent evt ) { if ( evt . getPropertyName ( ) == MapBean . LayersProperty ) { listenToLayers ( ( Layer [ ] ) evt . getNewValue ( ) ) ; } }
listen for the layer changes within the mapbean , to display the status lights for each layer .
