]> ruin.nu Git - moosique.git/commitdiff
Fixed MooGUI's windowlistener and changed the font of MooInstrumentList
authorEinar Pehrson <einarp@itstud.chalmers.se>
Mon, 28 Apr 2003 01:40:39 +0000 (01:40 +0000)
committerEinar Pehrson <einarp@itstud.chalmers.se>
Mon, 28 Apr 2003 01:40:39 +0000 (01:40 +0000)
MooGUI.java
MooInstrumentList.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) {}
index 3e538d489d9b7edc672984addd0f5e077839d8aa..1864b690d4345fef3e3754f8cff86010045af513 100644 (file)
@@ -1,5 +1,6 @@
 import javax.sound.midi.*;
 import javax.swing.*;
+import java.awt.*;
 import java.awt.event.*;
 
 /*
@@ -12,6 +13,7 @@ public class MooInstrumentList extends JComboBox implements ActionListener {
 
        public MooInstrumentList() {
                super(instruments);
+               setFont(new Font("Times New Roman", Font.PLAIN, 10));
                addActionListener(this);
        }