diff --git a/GenerateurSudoku.class b/GenerateurSudoku.class index baf4bc2..2340c60 100644 Binary files a/GenerateurSudoku.class and b/GenerateurSudoku.class differ diff --git a/GrilleSudokuDessin.class b/GrilleSudokuDessin.class index 28cb06b..2554d2a 100644 Binary files a/GrilleSudokuDessin.class and b/GrilleSudokuDessin.class differ diff --git a/Grilles.class b/Grilles.class index 18560e4..005a27b 100644 Binary files a/Grilles.class and b/Grilles.class differ diff --git a/Grilles/GrillesTest.gri b/Grilles/GrillesTest.gri index 6958f0c..1f76f3f 100644 Binary files a/Grilles/GrillesTest.gri and b/Grilles/GrillesTest.gri differ diff --git a/Lecteur.class b/Lecteur.class index ecbf45f..5bbcc2a 100644 Binary files a/Lecteur.class and b/Lecteur.class differ diff --git a/Lecteur.java b/Lecteur.java index 6b3495f..d7d76b1 100644 --- a/Lecteur.java +++ b/Lecteur.java @@ -4,7 +4,7 @@ import java.io.*; import javax.swing.filechooser.FileNameExtensionFilter; public class Lecteur{ - public static void lecture(String name, int [][] g) { + public static void lecture(File name, int [][] g) { int valeur[] = new int[9]; int valeur_en_fin[][]= new int[9][9]; @@ -41,5 +41,6 @@ public class Lecteur{ } valeur_actuelle=0; } + System.out.print("Fichier enregistrer"); } } \ No newline at end of file diff --git a/Main$1.class b/Main$1.class deleted file mode 100644 index 4b9c11b..0000000 Binary files a/Main$1.class and /dev/null differ diff --git a/Main$2.class b/Main$2.class deleted file mode 100644 index 83fe023..0000000 Binary files a/Main$2.class and /dev/null differ diff --git a/Main$3.class b/Main$3.class deleted file mode 100644 index 5b13b1c..0000000 Binary files a/Main$3.class and /dev/null differ diff --git a/Main.class b/Main.class index 767f63c..9a47b06 100644 Binary files a/Main.class and b/Main.class differ diff --git a/MainCreation$1.class b/MainCreation$1.class index 8f193d8..85a5597 100644 Binary files a/MainCreation$1.class and b/MainCreation$1.class differ diff --git a/MainCreation$2.class b/MainCreation$2.class index faeddb9..fbea975 100644 Binary files a/MainCreation$2.class and b/MainCreation$2.class differ diff --git a/MainCreation$3.class b/MainCreation$3.class index b1c9365..7ca7a6c 100644 Binary files a/MainCreation$3.class and b/MainCreation$3.class differ diff --git a/MainCreation.class b/MainCreation.class index fa2cb3f..59ef04d 100644 Binary files a/MainCreation.class and b/MainCreation.class differ diff --git a/MainCreation.java b/MainCreation.java index e6d4904..c5c51e6 100644 --- a/MainCreation.java +++ b/MainCreation.java @@ -45,17 +45,17 @@ public class MainCreation { @Override public void actionPerformed(ActionEvent e) { selF.dispose(); - JFileChooser fichier = new JFileChooser(); + JFileChooser fileChooser = new JFileChooser(); FileNameExtensionFilter filter = new FileNameExtensionFilter("File grille","gri"); - fichier.setFileFilter(filter); + fileChooser.setFileFilter(filter); File workingDirectory = new File(System.getProperty("user.dir")); - fichier.setCurrentDirectory(workingDirectory); + fileChooser.setCurrentDirectory(workingDirectory); JPanel panneau = new JPanel(); - int valeur_de_retour = fichier.showOpenDialog(panneau); + int valeur_de_retour = fileChooser.showOpenDialog(panneau); if(valeur_de_retour == JFileChooser.APPROVE_OPTION) { - Lecteur.lecture(fichier.getSelectedFile().getName(), grille); + Lecteur.lecture(fileChooser.getSelectedFile(), grille); fenetreModification(grille); } } @@ -80,7 +80,7 @@ public class MainCreation { JPanel panneau = new JPanel(); int valeur_de_retour = fileChooser.showOpenDialog(panneau); if(valeur_de_retour == JFileChooser.APPROVE_OPTION) { - Register.sauvegarde(fileChooser.getSelectedFile().getName(), grille); + Register.sauvegarde(fileChooser.getSelectedFile(), grille); } } }); diff --git a/OuvertureFichier.class b/OuvertureFichier.class index 039a049..932c978 100644 Binary files a/OuvertureFichier.class and b/OuvertureFichier.class differ diff --git a/Register.class b/Register.class index 79d8696..62153d9 100644 Binary files a/Register.class and b/Register.class differ diff --git a/Register.java b/Register.java index 2b1c50a..8bb978e 100644 --- a/Register.java +++ b/Register.java @@ -4,7 +4,7 @@ import java.io.*; import javax.swing.filechooser.FileNameExtensionFilter; public class Register{ - public static void sauvegarde(String name, int [][] g){ + public static void sauvegarde(File name, int [][] g){ int val[] = new int[9]; int actuVal=0; @@ -33,5 +33,6 @@ public class Register{ }catch(FileNotFoundException e){ System.out.println("Fichier non trouvé"); } + System.out.print("Fichier enregistrer"); } } \ No newline at end of file diff --git a/Reinitialiser.class b/Reinitialiser.class index 7a9179d..24351e8 100644 Binary files a/Reinitialiser.class and b/Reinitialiser.class differ diff --git a/Resolveur.class b/Resolveur.class index c039556..7d4924b 100644 Binary files a/Resolveur.class and b/Resolveur.class differ diff --git a/SaisieGrille$1.class b/SaisieGrille$1.class deleted file mode 100644 index 9c9ec60..0000000 Binary files a/SaisieGrille$1.class and /dev/null differ diff --git a/SaisieGrille.class b/SaisieGrille.class index 967baf3..285c6e3 100644 Binary files a/SaisieGrille.class and b/SaisieGrille.class differ diff --git a/SudokuGenerator.class b/SudokuGenerator.class index c8d4474..0511a21 100644 Binary files a/SudokuGenerator.class and b/SudokuGenerator.class differ