From e3c77705b53a3ac3c1c15246f054bdcdd95cdba2 Mon Sep 17 00:00:00 2001 From: Roland Andersson Date: Wed, 7 May 2003 13:23:40 +0000 Subject: [PATCH] no message --- MooTrackView.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/MooTrackView.java b/MooTrackView.java index bbb7402..d7833e4 100644 --- a/MooTrackView.java +++ b/MooTrackView.java @@ -21,6 +21,7 @@ public class MooTrackView extends JPanel{ private MooTrackTitle title; private NoteArea notes; private Rectangle box; + private Rectangle box2; //private JPanel notes; /** @@ -49,16 +50,15 @@ public class MooTrackView extends JPanel{ } private JPanel noteView () { - notes = new NoteArea(); - notes.setBorder(BorderFactory.createLineBorder(Color.black)); - return notes; - + notes = new NoteArea(); + notes.setBackground(Color.white); + notes.setBorder(BorderFactory.createLineBorder(Color.black)); + return notes; } class NoteArea extends JPanel { public void RectanglePanel() { setPreferredSize(new Dimension(20, 20)); - //box = new Rectangle(100,100,20,20); } @@ -67,6 +67,8 @@ public class MooTrackView extends JPanel{ Graphics2D g2 = (Graphics2D)g; box = new Rectangle(0,0,20,20); g2.draw(box); + box2 = new Rectangle(20,0,20,20); + g2.draw(box2); } } -- 2.39.2