]> ruin.nu Git - moosique.git/blobdiff - MooGUI.java
no message
[moosique.git] / MooGUI.java
index 5a545838831f2b5ac4656655a1d813528e6f53c1..7bcd6dd854d103d8360c78f1396ad0c9dde62eae 100644 (file)
@@ -13,6 +13,7 @@ public class MooGUI extends JFrame {
 
        private Sequence seq;
 
+       private MooToolbar toolbar;
        private JPanel trackPanel;
        private MooTrackView[] trackViews;
        private JLabel statusBar;
@@ -28,13 +29,14 @@ public class MooGUI extends JFrame {
                this.seq = seq;
                
                Container pane = getContentPane();
-               pane.setLayout(new BorderLayout());
+               pane.setLayout(new BoxLayout(pane, BoxLayout.Y_AXIS));
                
                // Adds menu bar.
                setJMenuBar(new MooMenu());
 
                // Adds toolbar.
-               pane.add(new MooToolbar(), BorderLayout.NORTH);
+               toolbar = new MooToolbar();
+               pane.add(toolbar, BorderLayout.NORTH);
 
                // Adds tracks.
                trackPanel = new JPanel(true);
@@ -48,7 +50,7 @@ public class MooGUI extends JFrame {
                addWindowListener(new MooGUICloser());
                pack();
                Dimension bounds = Toolkit.getDefaultToolkit().getScreenSize();
-               setSize(bounds.width,bounds.height - 60);
+               setSize(bounds.width,bounds.height - 40);
                setLocation(0, 0);
                // setResizable(false);
                setBackground(Color.white);
@@ -73,6 +75,9 @@ public class MooGUI extends JFrame {
                statusBar.setText(text);
        }
        
+       /** 
+        * Fills the track panel with track views for all tracks in the current sequence.
+        */
        private void createTrackViews() {
                trackPanel.removeAll();
                Track[] tracks = seq.getTracks();
@@ -84,7 +89,7 @@ public class MooGUI extends JFrame {
                }
                trackPanel.validate();
        }
-
+       
        class MooGUICloser extends WindowAdapter {
                public void windowClosing(WindowEvent e) {Moosique.quit();}
        }