From: Michael Andreen Date: Mon, 12 May 2003 22:03:39 +0000 (+0000) Subject: it scrolls! X-Git-Url: https://ruin.nu/git/?p=moosique.git;a=commitdiff_plain;h=575519a1889993d4d2928f761dc172002275dd20 it scrolls! --- diff --git a/MooTrackView.java b/MooTrackView.java index c94657b..712918a 100644 --- a/MooTrackView.java +++ b/MooTrackView.java @@ -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;