question: public void firePaletteEvent ( ComponentEvent event ) { if ( localHackList == null ) { return ; } palette = ( Container ) event . getSource ( ) ; int eventType = event . getID ( ) ; for ( ComponentListener listener : localHackList ) { if ( eventType == ComponentEvent . COMPONENT_HIDDEN ) { listener . componentHidden ( event ) ; } else if ( eventType == ComponentEvent . COMPONENT_SHOWN ) { listener . componentShown ( event ) ; } } if ( eventType == ComponentEvent . COMPONENT_HIDDEN ) { palette = null ; } }
target:  Fire a component event to the Layer component listeners, with the palette as the component, letting them know if it's visible or not.