mise à jour
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+7
-5
@@ -110,8 +110,14 @@ public class TextFilter extends KeyAdapter {
|
||||
}
|
||||
|
||||
} else if(status == 1){
|
||||
// Taille maximum par case
|
||||
if ( taille >= 1 ) {
|
||||
e.consume();
|
||||
}else{
|
||||
|
||||
|
||||
// Traite la saisie pour savoir si le chiffer peut être posé
|
||||
if ( taille > 1 && ((chiffre >= '1') && (chiffre <= '9')) && (chiffre != KeyEvent.VK_ENTER)) {
|
||||
if (((chiffre >= '1') && (chiffre <= '9')) && (chiffre != KeyEvent.VK_ENTER)) {
|
||||
GrilleValide(chiffre);
|
||||
}
|
||||
|
||||
@@ -122,10 +128,6 @@ public class TextFilter extends KeyAdapter {
|
||||
grid[bad_numbers.removeFirst()][bad_numbers.removeFirst()].setBackground(Color.white);
|
||||
}
|
||||
}
|
||||
|
||||
// Taille maximum par case
|
||||
if ( taille >= 1 ) {
|
||||
e.consume();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
BIN
Binary file not shown.
Reference in New Issue
Block a user