public void createPanel(Layer[] layers){
  createLayerClasses(layers);
  createPanel();
}

public void createPanel ( Layer [ ] layers ) { createLayerClasses ( layers ) ; createPanel ( ) ; }
produces a dialog panel to add a layer , with the layers given .
