public void repaintPanel(){
  removeAll();
  initializeLayout();
  repaint();
}

public void repaintPanel ( ) { removeAll ( ) ; initializeLayout ( ) ; repaint ( ) ; }
called to repaint the panel based on changes in the to the selected synapse type .
