]> ruin.nu Git - moosique.git/blobdiff - MooGUI.java
tagit bort min fula mainmetod
[moosique.git] / MooGUI.java
index 60bb7aca9ed424b63c7231a7010109f54cfb81d2..b7031d8b1f78fdd1660fb5430ae1943f42dba897 100644 (file)
@@ -3,7 +3,7 @@ import javax.swing.*;
 import java.awt.*;
 import java.awt.event.*;
 
-/*
+/**
  * Moosique's graphical user interface.
  * 
  * @author  Mikael Andreen
@@ -13,7 +13,7 @@ public class MooGUI extends JFrame implements WindowListener {
 
        Sequence seq;
        
-       /* 
+       /** 
         * Creates the GUI.
         */
        public MooGUI(Sequence seq) {
@@ -24,6 +24,7 @@ public class MooGUI extends JFrame implements WindowListener {
                m.addKeyListener(new MooKeyboard());
                pack();
                Dimension bounds = new Dimension(300,70);
+               setJMenuBar(new MooMenu());
 //             setSize(bounds.width,bounds.height);
                setLocation((Toolkit.getDefaultToolkit().getScreenSize().width / 2) - (bounds.width / 2), (Toolkit.getDefaultToolkit().getScreenSize().height / 2) - (bounds.height / 2));
 //             setResizable(false);
@@ -31,7 +32,7 @@ public class MooGUI extends JFrame implements WindowListener {
                setVisible(true);
        }
        
-       /* 
+       /** 
         * Changes the sequence of the GUI.
         * @param sequence      the MIDI sequence to visualize
         */
@@ -46,4 +47,4 @@ public class MooGUI extends JFrame implements WindowListener {
        public void windowDeiconified(WindowEvent e) {}
        public void windowActivated(WindowEvent e) {}
        public void windowDeactivated(WindowEvent e) {}
-}
\ No newline at end of file
+}