import java.awt.*;
import java.awt.event.*;
-/*
+/**
* Moosique's graphical user interface.
*
* @author Mikael Andreen
Sequence seq;
- /*
+ /**
* Creates the GUI.
*/
public MooGUI(Sequence seq) {
super("Moosique");
+ addWindowListener(this);
MooInstrumentList m = new MooInstrumentList();
getContentPane().add(m);
m.addKeyListener(new MooKeyboard());
setVisible(true);
}
- /*
+ /**
* Changes the sequence of the GUI.
* @param sequence the MIDI sequence to visualize
*/
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) {}