X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=MooGUI.java;h=cc145ab4a57f4e3f2603094aa8300c7152a6f51e;hb=d7666fadd2f8baca8a03cacae836f2563fe4dd5d;hp=0c1720289b53cb9cdf32dbff6956e284126255ee;hpb=4ac3b6210979ea78dceb609a0501cb0265d00065;p=moosique.git diff --git a/MooGUI.java b/MooGUI.java index 0c17202..cc145ab 100644 --- a/MooGUI.java +++ b/MooGUI.java @@ -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) {}