]> ruin.nu Git - moosique.git/blobdiff - MooGUI.java
Changed beginnings of comments from /* to /** which is necessary for the comments...
[moosique.git] / MooGUI.java
index 0c1720289b53cb9cdf32dbff6956e284126255ee..cc145ab4a57f4e3f2603094aa8300c7152a6f51e 100644 (file)
@@ -3,7 +3,7 @@ import javax.swing.*;
 import java.awt.*;
 import java.awt.event.*;
 
-/*
+/**
  * Moosique's graphical user interface.
  * 
  * @author  Mikael Andreen
@@ -13,11 +13,12 @@ public class MooGUI extends JFrame implements WindowListener {
 
        Sequence seq;
        
-       /* 
+       /** 
         * Creates the GUI.
         */
        public MooGUI(Sequence seq) {
                super("Moosique");
+               addWindowListener(this);
                MooInstrumentList m = new MooInstrumentList();
                getContentPane().add(m);
                m.addKeyListener(new MooKeyboard());
@@ -30,7 +31,7 @@ public class MooGUI extends JFrame implements WindowListener {
                setVisible(true);
        }
        
-       /* 
+       /** 
         * Changes the sequence of the GUI.
         * @param sequence      the MIDI sequence to visualize
         */
@@ -38,9 +39,9 @@ public class MooGUI extends JFrame implements WindowListener {
                seq = sequence;
        }
 
-       public void windowOpened(WindowEvent e) {}
-       public void windowClosing(WindowEvent e) {}
-       public void windowClosed(WindowEvent e) {Moosique.quit();}
+       public void windowOpened(WindowEvent e) {}
+       public void windowClosing(WindowEvent e) {Moosique.quit();}
+       public void windowClosed(WindowEvent e) {}
        public void windowIconified(WindowEvent e) {}
        public void windowDeiconified(WindowEvent e) {}
        public void windowActivated(WindowEvent e) {}