diff --git a/Sudoku/grille.class b/Sudoku/grille.class deleted file mode 100644 index ef9b65a..0000000 Binary files a/Sudoku/grille.class and /dev/null differ diff --git a/Sudoku/grille.java b/Sudoku/grille.java index 5c71d78..f3617b7 100644 --- a/Sudoku/grille.java +++ b/Sudoku/grille.java @@ -12,13 +12,17 @@ public class grille extends JComponent{ public static void AfficherGrille (int[][] grille, boolean editable) { /*paramètre de base de la fenetre*/ JFrame fenetre = new JFrame(); - fenetre.setSize(900, 900); + fenetre.setSize(900, 1100); fenetre.setResizable(false); fenetre.setLocationRelativeTo(null); fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); + /*Panneau pour la grille */ + JPanel place_grille = new JPanel(); + place_grille.setSize(900,900); + /*creation grille*/ GridLayout gestionnaire = new GridLayout(9,9,-2,-2); - fenetre.setLayout(gestionnaire); + place_grille.setLayout(gestionnaire); if(editable){ JTextField[][] case_editable = null; @@ -33,7 +37,7 @@ public class grille extends JComponent{ case_editable[i][j].setBorder(new LineBorder(Color.BLACK, 5)); case_editable[i][j].setFont(new Font("Arial", Font.PLAIN, 30)); case_editable[i][j].setHorizontalAlignment(JTextField.CENTER); - fenetre.add(case_editable[i][j]); + place_grille.add(case_editable[i][j]); } } }else{ @@ -51,17 +55,22 @@ public class grille extends JComponent{ case_modifiable[i][j].setBorder(new LineBorder(Color.BLACK, 5)); case_modifiable[i][j].setFont(new Font("Arial", Font.PLAIN, 30)); case_modifiable[i][j].setHorizontalAlignment(JTextField.CENTER); - fenetre.add(case_modifiable[i][j]); + place_grille.add(case_modifiable[i][j]); } else { case_depart[i][j] = new JLabel(String.valueOf(grid_values[i][j])); case_depart[i][j].setBorder(new LineBorder(Color.BLACK, 5)); case_depart[i][j].setFont(new Font("Arial", Font.PLAIN, 30)); case_depart[i][j].setHorizontalAlignment(JTextField.CENTER); - fenetre.add(case_depart[i][j]); + place_grille.add(case_depart[i][j]); } } } } + JPanel bouton_grille = new JPanel(); + bouton_grille.setSize(900,200); + JButton verifier = new JButton("verifier"); + bouton_grille.add(verifier); + fenetre.add(bouton_grille,BorderLayout.SOUTH); /*affichage fenetre*/ fenetre.setVisible(true); diff --git a/Sudoku/main.class b/Sudoku/main.class deleted file mode 100644 index e097232..0000000 Binary files a/Sudoku/main.class and /dev/null differ diff --git a/Sudoku/menu$1.class b/Sudoku/menu$1.class deleted file mode 100644 index f8ffd5e..0000000 Binary files a/Sudoku/menu$1.class and /dev/null differ diff --git a/Sudoku/menu$2.class b/Sudoku/menu$2.class deleted file mode 100644 index 0a1d9ea..0000000 Binary files a/Sudoku/menu$2.class and /dev/null differ diff --git a/Sudoku/menu$3.class b/Sudoku/menu$3.class deleted file mode 100644 index fc89cd7..0000000 Binary files a/Sudoku/menu$3.class and /dev/null differ diff --git a/Sudoku/menu$4.class b/Sudoku/menu$4.class deleted file mode 100644 index 9854cbb..0000000 Binary files a/Sudoku/menu$4.class and /dev/null differ diff --git a/Sudoku/menu$5.class b/Sudoku/menu$5.class deleted file mode 100644 index a8e6b37..0000000 Binary files a/Sudoku/menu$5.class and /dev/null differ diff --git a/Sudoku/menu$6.class b/Sudoku/menu$6.class deleted file mode 100644 index 3002fed..0000000 Binary files a/Sudoku/menu$6.class and /dev/null differ diff --git a/Sudoku/menu.class b/Sudoku/menu.class deleted file mode 100644 index 600d735..0000000 Binary files a/Sudoku/menu.class and /dev/null differ diff --git a/Sudoku/resolveurGrille.class b/Sudoku/resolveurGrille.class deleted file mode 100644 index cdf3903..0000000 Binary files a/Sudoku/resolveurGrille.class and /dev/null differ