Browse Source

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 years ago
parent
commit
7fcfc18ceb
2 changed files with 6 additions and 2 deletions
  1. 5
    1
      Cube Control/frame.java
  2. 1
    1
      Cube Control/makefile

+ 5
- 1
Cube Control/frame.java View File

90
        return 0;
90
        return 0;
91
     }
91
     }
92
   }
92
   }
93
+
93
   private void errorMessage(String s) {
94
   private void errorMessage(String s) {
94
   String[] Optionen = {"OK"};
95
   String[] Optionen = {"OK"};
95
   JOptionPane.showOptionDialog(this, s, "Error!", JOptionPane.YES_OPTION, JOptionPane.ERROR_MESSAGE, null, Optionen, Optionen[0]);
96
   JOptionPane.showOptionDialog(this, s, "Error!", JOptionPane.YES_OPTION, JOptionPane.ERROR_MESSAGE, null, Optionen, Optionen[0]);
532
     }
533
     }
533
     animModel.clear();
534
     animModel.clear();
534
     System.out.println(n);
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
     animList.setModel(animModel);
540
     animList.setModel(animModel);
537
     }
541
     }
538
 
542
 

+ 1
- 1
Cube Control/makefile View File

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

Loading…
Cancel
Save