]> ruin.nu Git - moosique.git/blobdiff - MooGUI.java
*** empty log message ***
[moosique.git] / MooGUI.java
index 32285ac5191375271ec0ba593f2dddfb8cb45ac6..065267eec3e8e04a48723d15311b4b2edef03d0c 100644 (file)
@@ -75,6 +75,7 @@ public class MooGUI extends JFrame {
                // Configures window.
                addWindowListener(new MooGUICloser());
                pack();
+               setIconImage(Toolkit.getDefaultToolkit().getImage("images/moose.gif"));
                Dimension bounds = Toolkit.getDefaultToolkit().getScreenSize();
                setSize(bounds.width,bounds.height - 40);
                setLocation(0, 0);
@@ -113,9 +114,9 @@ public class MooGUI extends JFrame {
         * Calls on the main view to update the track views,
         * and on the toolbar to update the progress indicator.
         */
-       public void update(){
-               view.update();
-               toolbar.updateProgInd();
+       public void update(long tickPosition){
+               view.update(tickPosition);
+               toolbar.updateProgInd(tickPosition);
        }
 
        class MooGUICloser extends WindowAdapter {
@@ -123,4 +124,4 @@ public class MooGUI extends JFrame {
                        Moosique.quit();
                }
        }
-}
+}
\ No newline at end of file