]> ruin.nu Git - moosique.git/blobdiff - MooGUI.java
Fixed MooGUI's windowlistener and changed the font of MooInstrumentList
[moosique.git] / MooGUI.java
index 0c1720289b53cb9cdf32dbff6956e284126255ee..60bb7aca9ed424b63c7231a7010109f54cfb81d2 100644 (file)
@@ -18,6 +18,7 @@ public class MooGUI extends JFrame implements WindowListener {
         */
        public MooGUI(Sequence seq) {
                super("Moosique");
+               addWindowListener(this);
                MooInstrumentList m = new MooInstrumentList();
                getContentPane().add(m);
                m.addKeyListener(new MooKeyboard());
@@ -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) {}