]> ruin.nu Git - moosique.git/blobdiff - Moosique.java
Fixed the FileFilter, implemented some menu options, tweaked the GUI and organized...
[moosique.git] / Moosique.java
index c2006faff375c1c093596acc32fe5c2e5f988e2e..bb90b765b69492f5d2da3a6334e507de62f46825 100644 (file)
@@ -244,16 +244,19 @@ public class Moosique {
 
        /** 
         * Saves the current sequence to the given filename
-        * @param filename      the filename to use
+        * @param file  the filename to use
         */
-       public static void saveAs(String filename) throws IOException {
-               MidiSystem.write(seq, 1, new File(filename));
+       public static void saveAs(String file) {
+               try {
+                       MidiSystem.write(seq, 1, new File(filename));
+               } catch (IOException e) {}
+               filename = file;
        }
 
        /** 
         * Saves the current sequence to the previously given filename.
         */
-       public static void save() throws IOException {
+       public static void save() {
                saveAs(filename);
        }