]> ruin.nu Git - moosique.git/commitdiff
added MooMenu.java and lade till setJMenuBar i MooGui's constructor
authorBjörn Lanneskog <lannesko@itstud.chalmers.se>
Tue, 6 May 2003 12:28:36 +0000 (12:28 +0000)
committerBjörn Lanneskog <lannesko@itstud.chalmers.se>
Tue, 6 May 2003 12:28:36 +0000 (12:28 +0000)
MooGUI.java
MooMenu.java

index cc145ab4a57f4e3f2603094aa8300c7152a6f51e..b7031d8b1f78fdd1660fb5430ae1943f42dba897 100644 (file)
@@ -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);
@@ -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
+}
index 1a1da58a14d759944741648c0fce7aa13883f962..39b86e4e5aab180d23a24af61c50be4ba3fa83ca 100644 (file)
@@ -4,10 +4,6 @@ public class MooMenu extends JMenuBar
 {
        // empty contructor that anropar the createMooMenu in the mainmethod
        public MooMenu()
-       {
-       }
-
-       public JMenuBar createMooMenu()
        {
                JMenuBar menubar = new JMenuBar();
                menubar.add(createFileMenu());
@@ -16,7 +12,6 @@ public class MooMenu extends JMenuBar
                menubar.add(createTrackMenu());
                menubar.add(createNoteMenu());
                menubar.add(createHelpMenu());
-               return menubar;
        }
 
        // creates the filemenu