SAE21_2023/ReinitialiserActionListener.java

21 lines
542 B
Java
Raw Normal View History

2024-04-30 15:00:32 +02:00
import javax.swing.*;
import java.awt.event.*;
public class ReinitialiserActionListener implements ActionListener {
private int[][] grille;
private SaisieGrille saisieGrille;
public ReinitialiserActionListener(int[][] grille, SaisieGrille saisieGrille) {
this.grille = grille;
this.saisieGrille = saisieGrille;
}
@Override
public void actionPerformed(ActionEvent e) {
Reinitialiser reinitialiser = new Reinitialiser(grille, saisieGrille);
reinitialiser.actionPerformed(e);
}
}