traduction
This commit is contained in:
parent
e9ec7f5036
commit
8f6ff0aaf2
@ -61,7 +61,7 @@ public class FileManager {
|
|||||||
fileChooser.setFileFilter(new FileNameExtensionFilter("Fichiers de grille (.gri)", "gri"));
|
fileChooser.setFileFilter(new FileNameExtensionFilter("Fichiers de grille (.gri)", "gri"));
|
||||||
int userSelection = fileChooser.showOpenDialog(null);
|
int userSelection = fileChooser.showOpenDialog(null);
|
||||||
if (userSelection == JFileChooser.APPROVE_OPTION) {
|
if (userSelection == JFileChooser.APPROVE_OPTION) {
|
||||||
// Obtention du nom de fichier choisi par l'utilisateur
|
// Obtain user-selected file name
|
||||||
String fileName = fileChooser.getSelectedFile().getAbsolutePath();
|
String fileName = fileChooser.getSelectedFile().getAbsolutePath();
|
||||||
try (BufferedReader reader = new BufferedReader(new FileReader(fileName))) {
|
try (BufferedReader reader = new BufferedReader(new FileReader(fileName))) {
|
||||||
Grille grid = new Grille();
|
Grille grid = new Grille();
|
||||||
|
Loading…
Reference in New Issue
Block a user