protected void resetPalette(){
  java.awt.Container pal=getPalette();
  boolean putUp=false;
  if (pal != null && pal.isVisible()) {
    putUp=true;
    setPaletteVisible(false);
  }
  if (putUp) {
    setPaletteVisible(true);
  }
}

protected void resetPalette ( ) { java . awt . Container pal = getPalette ( ) ; boolean putUp = false ; if ( pal != null && pal . isVisible ( ) ) { putUp = true ; setPaletteVisible ( false ) ; } if ( putUp ) { setPaletteVisible ( true ) ; } }
called when something about the layer has changed that would require the palette to be reconfigured . will cause getgui ( ) to be called again . you should take steps before calling this method to make sure that the getgui ( ) method is ready to recreate the palette components from scratch if needed .
