question: protected void listenToLayers ( Layer [ ] newLayers ) { if ( SwingUtilities . isEventDispatchThread ( ) ) { listenToLayersFromEDT ( newLayers ) ; } else { SwingUtilities . invokeLater ( new MyWorker ( newLayers ) ) ; } }
target:  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.