/**
 * Classe principale qui gère le lancement du jeu
 * 
 * @author Groupe N5
 */

package principal;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.Timer;

import modele.Gravite;
import modele.ObservableModele;
import resources.Constants;
import vue.Jeu;
import vue.StartPanel;
import controller.Controller;

public class Main {

  /**
   * Fonction main
   * 
   * @param args
   */
  public static void main(String[] args) {
    // ObservableModele m = new Bezier(0.002);
    // ObservableModele m = new Parabole(1);
    final ObservableModele m = new Gravite();   
    StartPanel start = new StartPanel(m);
    final Jeu f = new Jeu(m, new Controller());
    f.startSimulation();

    ActionListener al = new ActionListener() {
      int cpt = 1;

      @Override
      public void actionPerformed(ActionEvent arg0) {
        if (m.done) {
          cpt++;
          //if (cpt < Constants.NBR_SIMULATION) {
            f.restartSimulation();
          //} else {
          //  System.exit(0);
          //}
        }
      }
    };
    Timer t = new Timer(1000, al);
    t.start();
  }
}

@@ -652,16 +652,44 @@
 nel(m);%0A
+    while(!m.isChoosed());;%0A
     fina
@@ -753,16 +753,18 @@
 tion();%0A
+  
 %0A    Act

Update Main.java