24 lines
596 B
Java
24 lines
596 B
Java
|
|
||
|
import javax.swing.*;
|
||
|
import java.awt.event.*;
|
||
|
|
||
|
|
||
|
public class ManuelActionListener implements ActionListener {
|
||
|
private JFrame choixFrame;
|
||
|
|
||
|
public ManuelActionListener(JFrame choixFrame) {
|
||
|
this.choixFrame = choixFrame;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public void actionPerformed(ActionEvent e) {
|
||
|
choixFrame.dispose();
|
||
|
|
||
|
int[][] grille = GenerateurSudoku.genererGrille();
|
||
|
System.out.println("Grille Sudoku générée avec succès.");
|
||
|
|
||
|
FenetrePrincipale fenetrePrincipale = new FenetrePrincipale();
|
||
|
fenetrePrincipale.afficher(false, grille);
|
||
|
}
|
||
|
}
|