private void applyLayout(){
  layoutPanel.commitChanges();
  neuronGroup.setLayout(layoutPanel.getCurrentLayout());
  neuronGroup.applyLayout();
}

private void applyLayout ( ) { layoutPanel . commitChanges ( ) ; neuronGroup . setLayout ( layoutPanel . getCurrentLayout ( ) ) ; neuronGroup . applyLayout ( ) ; }
a helper method to perform all the steps necessary to apply a layout and have those layouts reflected .
