]> ruin.nu Git - moosique.git/commitdiff
it scrolls!
authorMichael Andreen <harv@ruin.nu>
Mon, 12 May 2003 22:03:39 +0000 (22:03 +0000)
committerMichael Andreen <harv@ruin.nu>
Mon, 12 May 2003 22:03:39 +0000 (22:03 +0000)
MooTrackView.java

index c94657b6314ed33d18f62d7c506bcb345f7a639d..712918afad081ed3d712349577e475b69e1a1d2c 100644 (file)
@@ -22,7 +22,7 @@ public class MooTrackView extends JPanel implements ActionListener {
 
        public MooTrackView (Track track) {
                this.track = track;
-               setPreferredSize(new Dimension(200, 200));
+               //setPreferredSize(new Dimension(200, 9000));
                setLayout(new BorderLayout());
                this.setBorder(BorderFactory.createLineBorder(Color.black));
 
@@ -69,6 +69,7 @@ public class MooTrackView extends JPanel implements ActionListener {
                        System.out.println("Creating track view...");
                        setLayout(null);
                        trackLength = 140;
+                       setPreferredSize(new Dimension(200,140*NOTE_HEIGHT));
                        MidiEvent note;
                        MooNoteElement elem;
                        boolean isOccupied;