]> ruin.nu Git - moosique.git/blobdiff - MooGUI.java
lagt till en toolbar och tillhörande gif bilder i mappen images
[moosique.git] / MooGUI.java
index b7031d8b1f78fdd1660fb5430ae1943f42dba897..944ed986fcf26993440ca78a1c576874b6671542 100644 (file)
@@ -18,17 +18,19 @@ public class MooGUI extends JFrame implements WindowListener {
         */
        public MooGUI(Sequence seq) {
                super("Moosique");
+               setJMenuBar(new MooMenu());
+               getContentPane().add(new MooToolbar(), BorderLayout.NORTH);
                addWindowListener(this);
                MooInstrumentList m = new MooInstrumentList();
-               getContentPane().add(m);
+               getContentPane().add(m, BorderLayout.CENTER);
                m.addKeyListener(new MooKeyboard());
                pack();
-               Dimension bounds = new Dimension(300,70);
-               setJMenuBar(new MooMenu());
+               //Dimension bounds = new Dimension(300,70);
+               
 //             setSize(bounds.width,bounds.height);
-               setLocation((Toolkit.getDefaultToolkit().getScreenSize().width / 2) - (bounds.width / 2), (Toolkit.getDefaultToolkit().getScreenSize().height / 2) - (bounds.height / 2));
+               //setLocation((Toolkit.getDefaultToolkit().getScreenSize().width / 2) - (bounds.width / 2), (Toolkit.getDefaultToolkit().getScreenSize().height / 2) - (bounds.height / 2));
 //             setResizable(false);
-               setBackground(Color.white);
+               //setBackground(Color.white);
                setVisible(true);
        }