Image im = icon.getImage();
icon.setImage(im.getScaledInstance(100,-1,Image.SCALE_SMOOTH));
}
//System.out.println("About to create new using repos:"+this.repos);
OdeModel model = new OdeModel(new OdeSolver(new DefaultOdeSolver(new EulerOdeUpdater(new Logistic()))));
GraphicalOdeSolution newsol = new GraphicalOdeSolution();
newsol.setParent(this);
//newsol.setIcon(icon);
this.addChild(newsol);
//Add the model to the shared model selector and share the model
//selector with the model.
this.sharedModelSelector.addModel(newsol.getModel());
newsol.setModelSelector(this.sharedModelSelector);
return(newsol);
}