public void newModel() {
if (checkForSave("<html>Save changes before creating a new model?</html>")) {
return;
}
resetMouseState();
graph = new JmtJGraph(this);
graph.setModel(new DefaultGraphModel());
// Giuseppe De Cicco
graph.getGraphLayoutCache().setFactory(new JmtDefaultCellViewFactory(this) {