SAE21_2023/GrilleVideActionListener.java
2024-05-02 17:36:25 +02:00

28 lines
715 B
Java

import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.io.File;
import java.io.PrintWriter;
import java.io.FileWriter;
import java.io.IOException;
import javax.swing.JFileChooser;
import javax.swing.filechooser.FileNameExtensionFilter;
public class GrilleVideActionListener implements ActionListener{
private JFrame choixFrame;
public GrilleVideActionListener(JFrame choixFrame) {
this.choixFrame = choixFrame;
}
@Override
public void actionPerformed(ActionEvent e) {
int [][] grille = new int [9][9];
choixFrame.dispose();
Grilles.grilleVide(grille);
FenetreModif.fenetreModification(grille);
}
}