Image im = icon.getImage();
icon.setImage(im.getScaledInstance(100,-1,Image.SCALE_SMOOTH));
}
//GraphicalStatisticalModel model = new GraphicalStatisticalModel(newmod,this.repos,this.iconServer,"Untitled",icon);
GraphicalStatisticalModel model = new GraphicalStatisticalModel();
model.setParent(this);
model.setIcon(icon);
this.addChild(model);
//Add the model to the shared model selector and share the model
//selector with the model.
this.sharedModelSelector.addModel(model.getModel());
model.setModelSelector(this.sharedModelSelector);
model.setDataSetSelector(this.sharedDataSetSelector);
return(model);
}