public void removeAllComponents(){
  List<WorkspaceComponent> toRemove=new ArrayList<WorkspaceComponent>();
synchronized (componentList) {
    for (    WorkspaceComponent component : componentList) {
      toRemove.add(component);
    }
    for (    WorkspaceComponent component : toRemove) {
      removeWorkspaceComponent(component);
    }
  }
}

public void removeAllComponents ( ) { List < WorkspaceComponent > toRemove = new ArrayList < WorkspaceComponent > ( ) ; synchronized ( componentList ) { for ( WorkspaceComponent component : componentList ) { toRemove . add ( component ) ; } for ( WorkspaceComponent component : toRemove ) { removeWorkspaceComponent ( component ) ; } } }
disposes all simbrain windows .
