*/
public MooGUI(Sequence seq) {
super("Moosique");
+ addWindowListener(this);
MooInstrumentList m = new MooInstrumentList();
getContentPane().add(m);
m.addKeyListener(new MooKeyboard());
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) {}
import javax.sound.midi.*;
import javax.swing.*;
+import java.awt.*;
import java.awt.event.*;
/*
public MooInstrumentList() {
super(instruments);
+ setFont(new Font("Times New Roman", Font.PLAIN, 10));
addActionListener(this);
}