Fix button gif not disappear

This commit is contained in:
Quentin Legot 2021-03-30 17:37:40 +02:00
parent 76727bd28c
commit 6f7ef0a33c
2 changed files with 8 additions and 7 deletions

View File

@ -27,12 +27,13 @@ public class DrawHelper {
gl.glVertex3f(0f, 0f, 1f); gl.glVertex3f(0f, 0f, 1f);
gl.glColor3f(255f, 255f, 255f); gl.glColor3f(255f, 255f, 255f);
for (int i = -20; i < 21; i++) { int limit = 20;
gl.glVertex3f(-20f, 0f, i); for (int i = -limit; i < limit + 1; i++) {
gl.glVertex3f(20f, 0f, i); gl.glVertex3f(-limit, 0f, i);
gl.glVertex3f(limit, 0f, i);
gl.glVertex3f(i, 0, -20f); gl.glVertex3f(i, 0, -limit);
gl.glVertex3f(i, 0, 20f); gl.glVertex3f(i, 0, limit);
} }
gl.glEnd(); gl.glEnd();
gl.glRasterPos3f(1.1f, 0.0f, 0.0f); gl.glRasterPos3f(1.1f, 0.0f, 0.0f);

View File

@ -106,8 +106,8 @@ public class Listener implements ActionListener, KeyListener, MouseWheelListener
} else if (!parser3D.isCorrect()) { } else if (!parser3D.isCorrect()) {
openDialog("Vos règles ou votre axiome ne sont pas correctement écrites, veuillez recommencer"); openDialog("Vos règles ou votre axiome ne sont pas correctement écrites, veuillez recommencer");
} else { } else {
tab.submitButton2D.setIcon(staticIcon); tab.submitButton3D.setIcon(staticIcon);
tab.submitButton2D.setText(""); tab.submitButton3D.setText("");
parserThread = new Thread(() -> { parserThread = new Thread(() -> {
try { try {
List<Pair<String, String>> lSystemRules = parser3D.parseRules(); List<Pair<String, String>> lSystemRules = parser3D.parseRules();