correction bug programme 2
This commit is contained in:
parent
9e0eef5dff
commit
6f5ddfa7e1
BIN
Sudoku/grille$1.class
Normal file
BIN
Sudoku/grille$1.class
Normal file
Binary file not shown.
BIN
Sudoku/grille$2.class
Normal file
BIN
Sudoku/grille$2.class
Normal file
Binary file not shown.
BIN
Sudoku/grille.class
Normal file
BIN
Sudoku/grille.class
Normal file
Binary file not shown.
@ -65,12 +65,12 @@ public class grille extends JComponent{
|
|||||||
case_modifiable[ligne][col] = new JTextField("", 1);
|
case_modifiable[ligne][col] = new JTextField("", 1);
|
||||||
case_modifiable[ligne][col].setFont(new Font("Arial", Font.PLAIN, 30));
|
case_modifiable[ligne][col].setFont(new Font("Arial", Font.PLAIN, 30));
|
||||||
case_modifiable[ligne][col].setHorizontalAlignment(JTextField.CENTER);
|
case_modifiable[ligne][col].setHorizontalAlignment(JTextField.CENTER);
|
||||||
if ((ligne % 3 == 0) && (ligne != 0)){
|
if ((ligne % 3 == 0) && (ligne != 0) && (col % 3 == 0) && (col != 0)){
|
||||||
case_modifiable[ligne][col].setBorder(BorderFactory.createMatteBorder(5,2,2,2,Color.BLACK));
|
case_modifiable[ligne][col].setBorder(BorderFactory.createMatteBorder(5,5,2,2,Color.BLACK));
|
||||||
} else if ((col % 3 == 0) && (col != 0)){
|
} else if ((col % 3 == 0) && (col != 0)){
|
||||||
case_modifiable[ligne][col].setBorder(BorderFactory.createMatteBorder(2,5,2,2,Color.BLACK));
|
case_modifiable[ligne][col].setBorder(BorderFactory.createMatteBorder(2,5,2,2,Color.BLACK));
|
||||||
} else if ((ligne % 3 == 0) && (ligne != 0) && (col % 3 == 0) && (col != 0)){
|
} else if ((ligne % 3 == 0) && (ligne != 0)){
|
||||||
case_modifiable[ligne][col].setBorder(BorderFactory.createMatteBorder(5,5,2,2,Color.BLACK));
|
case_modifiable[ligne][col].setBorder(BorderFactory.createMatteBorder(5,2,2,2,Color.BLACK));
|
||||||
}else {
|
}else {
|
||||||
case_modifiable[ligne][col].setBorder(BorderFactory.createMatteBorder(2,2,2,2,Color.BLACK));
|
case_modifiable[ligne][col].setBorder(BorderFactory.createMatteBorder(2,2,2,2,Color.BLACK));
|
||||||
}
|
}
|
||||||
@ -79,12 +79,12 @@ public class grille extends JComponent{
|
|||||||
case_depart[ligne][col] = new JLabel(String.valueOf(grid_values[ligne][col]));
|
case_depart[ligne][col] = new JLabel(String.valueOf(grid_values[ligne][col]));
|
||||||
case_depart[ligne][col].setFont(new Font("Arial", Font.PLAIN, 30));
|
case_depart[ligne][col].setFont(new Font("Arial", Font.PLAIN, 30));
|
||||||
case_depart[ligne][col].setHorizontalAlignment(JTextField.CENTER);
|
case_depart[ligne][col].setHorizontalAlignment(JTextField.CENTER);
|
||||||
if ((ligne % 3 == 0) && (ligne != 0)){
|
if ((ligne % 3 == 0) && (ligne != 0) && (col % 3 == 0) && (col != 0)){
|
||||||
case_depart[ligne][col].setBorder(BorderFactory.createMatteBorder(5,2,2,2,Color.BLACK));
|
case_depart[ligne][col].setBorder(BorderFactory.createMatteBorder(5,5,2,2,Color.BLACK));
|
||||||
} else if ((col % 3 == 0) && (col != 0)){
|
} else if ((col % 3 == 0) && (col != 0)){
|
||||||
case_depart[ligne][col].setBorder(BorderFactory.createMatteBorder(2,5,2,2,Color.BLACK));
|
case_depart[ligne][col].setBorder(BorderFactory.createMatteBorder(2,5,2,2,Color.BLACK));
|
||||||
} else if ((ligne % 3 == 0) && (ligne != 0) && (col % 3 == 0) && (col != 0)){
|
} else if ((ligne % 3 == 0) && (ligne != 0)){
|
||||||
case_depart[ligne][col].setBorder(BorderFactory.createMatteBorder(5,5,2,2,Color.BLACK));
|
case_depart[ligne][col].setBorder(BorderFactory.createMatteBorder(5,2,2,2,Color.BLACK));
|
||||||
} else {
|
} else {
|
||||||
case_depart[ligne][col].setBorder(BorderFactory.createMatteBorder(2,2,2,2,Color.BLACK));
|
case_depart[ligne][col].setBorder(BorderFactory.createMatteBorder(2,2,2,2,Color.BLACK));
|
||||||
}
|
}
|
||||||
|
BIN
Sudoku/mainProgramme1.class
Normal file
BIN
Sudoku/mainProgramme1.class
Normal file
Binary file not shown.
BIN
Sudoku/mainProgramme2.class
Normal file
BIN
Sudoku/mainProgramme2.class
Normal file
Binary file not shown.
BIN
Sudoku/menuProgramme1$1.class
Normal file
BIN
Sudoku/menuProgramme1$1.class
Normal file
Binary file not shown.
BIN
Sudoku/menuProgramme1$2.class
Normal file
BIN
Sudoku/menuProgramme1$2.class
Normal file
Binary file not shown.
BIN
Sudoku/menuProgramme1$3.class
Normal file
BIN
Sudoku/menuProgramme1$3.class
Normal file
Binary file not shown.
BIN
Sudoku/menuProgramme1$4.class
Normal file
BIN
Sudoku/menuProgramme1$4.class
Normal file
Binary file not shown.
BIN
Sudoku/menuProgramme1.class
Normal file
BIN
Sudoku/menuProgramme1.class
Normal file
Binary file not shown.
BIN
Sudoku/menuProgramme2$1.class
Normal file
BIN
Sudoku/menuProgramme2$1.class
Normal file
Binary file not shown.
BIN
Sudoku/menuProgramme2$2.class
Normal file
BIN
Sudoku/menuProgramme2$2.class
Normal file
Binary file not shown.
BIN
Sudoku/menuProgramme2$3.class
Normal file
BIN
Sudoku/menuProgramme2$3.class
Normal file
Binary file not shown.
BIN
Sudoku/menuProgramme2$4.class
Normal file
BIN
Sudoku/menuProgramme2$4.class
Normal file
Binary file not shown.
BIN
Sudoku/menuProgramme2$5.class
Normal file
BIN
Sudoku/menuProgramme2$5.class
Normal file
Binary file not shown.
BIN
Sudoku/menuProgramme2.class
Normal file
BIN
Sudoku/menuProgramme2.class
Normal file
Binary file not shown.
BIN
Sudoku/resolveurGrille.class
Normal file
BIN
Sudoku/resolveurGrille.class
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user