private void initPanel(int numLayers){
  layerPanel.removeAll();
  layerList.clear();
  for (int i=numLayers; i > 0; i--) {
    LayerCreationPanel layer=new LayerCreationPanel(DEFAULT_NEURON_TYPES,"Layer " + i,5);
    if (i == 1) {
      layer.setComboBox("Linear");
    }
 else {
      layer.setComboBox("Logistic");
    }
    layerList.add(layer);
    layerPanel.add(layer);
    layerPanel.add(new JSeparator(SwingConstants.HORIZONTAL));
  }
  parent.pack();
  parent.setLocationRelativeTo(null);
}

private void initPanel ( int numLayers ) { layerPanel . removeAll ( ) ; layerList . clear ( ) ; for ( int i = numLayers ; i > 0 ; i -- ) { LayerCreationPanel layer = new LayerCreationPanel ( DEFAULT_NEURON_TYPES , "Layer " + i , 5 ) ; if ( i == 1 ) { layer . setComboBox ( "Linear" ) ; } else { layer . setComboBox ( "Logistic" ) ; } layerList . add ( layer ) ; layerPanel . add ( layer ) ; layerPanel . add ( new JSeparator ( SwingConstants . HORIZONTAL ) ) ; } parent . pack ( ) ; parent . setLocationRelativeTo ( null ) ; }
re - initialize the panels , with one layer editor per row .
