Ver código fonte

ficed stupid bug in frame.java, which cleared all animation when you clicked on the "add animation"

also fixed makefile for windows
Max Nuding 12 anos atrás
pai
commit
7fcfc18ceb
2 arquivos alterados com 6 adições e 2 exclusões
  1. 5
    1
      Cube Control/frame.java
  2. 1
    1
      Cube Control/makefile

+ 5
- 1
Cube Control/frame.java Ver arquivo

@@ -90,6 +90,7 @@ public class frame extends JFrame implements ListSelectionListener {
90 90
        return 0;
91 91
     }
92 92
   }
93
+
93 94
   private void errorMessage(String s) {
94 95
   String[] Optionen = {"OK"};
95 96
   JOptionPane.showOptionDialog(this, s, "Error!", JOptionPane.YES_OPTION, JOptionPane.ERROR_MESSAGE, null, Optionen, Optionen[0]);
@@ -532,7 +533,10 @@ public class frame extends JFrame implements ListSelectionListener {
532 533
     }
533 534
     animModel.clear();
534 535
     System.out.println(n);
535
-    animModel.addElement(worker.getAnimationName(n));
536
+    //animModel.addElement(worker.getAnimationName(n));
537
+    for (int i = 0; i < n; i++) {
538
+        animModel.add(i, worker.getAnimationName(i));
539
+    }
536 540
     animList.setModel(animModel);
537 541
     }
538 542
 

+ 1
- 1
Cube Control/makefile Ver arquivo

@@ -35,7 +35,7 @@ serialHelper:
35 35
 
36 36
 clean:
37 37
 ifeq ($(TARGET),win)
38
-	del $(CLASSES)
38
+	del *.class
39 39
 	del serialHelper.exe
40 40
 else
41 41
 	rm -f *.class

Carregando…
Cancelar
Salvar