protected void listenToLayers(Layer[] newLayers){
  if (SwingUtilities.isEventDispatchThread()) {
    listenToLayersFromEDT(newLayers);
  }
 else {
    SwingUtilities.invokeLater(new MyWorker(newLayers));
  }
}

protected void listenToLayers ( Layer [ ] newLayers ) { if ( SwingUtilities . isEventDispatchThread ( ) ) { listenToLayersFromEDT ( newLayers ) ; } else { SwingUtilities . invokeLater ( new MyWorker ( newLayers ) ) ; } }
method to add the statuslightpanel as an information display event listener to a list of layers . should not be called directly , because it is called as a result of the property change ( layers ) of the mapbean .
