Fix button gif not disappear
This commit is contained in:
parent
76727bd28c
commit
6f7ef0a33c
@ -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);
|
||||||
|
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user