Przeglądaj źródła

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

also fixed makefile for windows
Max Nuding 13 lat temu
rodzic
commit
7fcfc18ceb
2 zmienionych plików z 6 dodań i 2 usunięć
  1. 5
    1
      Cube Control/frame.java
  2. 1
    1
      Cube Control/makefile

+ 5
- 1
Cube Control/frame.java Wyświetl plik

@@ -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 Wyświetl plik

@@ -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

Ładowanie…
Anuluj
Zapisz