public void reset(){
  removeAll();
  if (container != null) {
    container.removeAll();
  }
  if (lightTriggers) {
    if (container == null) {
      container=new JPanel();
      container.setLayout(new FlowLayout(FlowLayout.LEFT,0,0));
    }
    add(container);
  }
 else {
    container=null;
  }
  if (layers != null) {
    for (int i=0; i < layers.length; i++) {
      JButton statusgif=getStatusLightForLayer(layers[i]);
      if (statusgif != null) {
        if (lightTriggers) {
          container.add(statusgif);
        }
 else {
          add(statusgif);
        }
      }
    }
  }
  revalidate();
}

public void reset ( ) { removeAll ( ) ; if ( container != null ) { container . removeAll ( ) ; } if ( lightTriggers ) { if ( container == null ) { container = new JPanel ( ) ; container . setLayout ( new FlowLayout ( FlowLayout . LEFT , 0 , 0 ) ) ; } add ( container ) ; } else { container = null ; } if ( layers != null ) { for ( int i = 0 ; i < layers . length ; i ++ ) { JButton statusgif = getStatusLightForLayer ( layers [ i ] ) ; if ( statusgif != null ) { if ( lightTriggers ) { container . add ( statusgif ) ; } else { add ( statusgif ) ; } } } } revalidate ( ) ; }
the method that updates the statuslight display with the correct layer status representation .
