private void addNeurons(){
  double number=Utils.doubleParsable(numNeurons);
  if (!Double.isNaN(number)) {
    number=(int)number;
    Network net=networkPanel.getNetwork();
    for (int i=0; i < number; i++) {
      addedNeurons.add(new Neuron(net,baseNeuron));
    }
    networkPanel.addNeuronsToPanel(addedNeurons,selectLayout.getCurrentLayout());
  }
}

private void addNeurons ( ) { double number = Utils . doubleParsable ( numNeurons ) ; if ( ! Double . isNaN ( number ) ) { number = ( int ) number ; Network net = networkPanel . getNetwork ( ) ; for ( int i = 0 ; i < number ; i ++ ) { addedNeurons . add ( new Neuron ( net , baseNeuron ) ) ; } networkPanel . addNeuronsToPanel ( addedNeurons , selectLayout . getCurrentLayout ( ) ) ; } }
adds the neurons to the panel .
