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;
  }
}

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 ; } }
fire a component event to the layer component listeners , with the palette as the component , letting them know if it ' s visible or not .
