X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=MooTrackView.java;h=712918afad081ed3d712349577e475b69e1a1d2c;hb=575519a1889993d4d2928f761dc172002275dd20;hp=c94657b6314ed33d18f62d7c506bcb345f7a639d;hpb=9f708407a52d8d0864e238cb37c0c30a5a783dc0;p=moosique.git 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;