From 2f35b2221a2aef3c09471d6ddd027a16c5dd2219 Mon Sep 17 00:00:00 2001 From: Roland Andersson Date: Wed, 7 May 2003 12:59:13 +0000 Subject: [PATCH] no message --- MooTrackView.java | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/MooTrackView.java b/MooTrackView.java index 62381b9..bbb7402 100644 --- a/MooTrackView.java +++ b/MooTrackView.java @@ -19,7 +19,10 @@ import java.awt.*; public class MooTrackView extends JPanel{ private MooTrackTitle title; - private JPanel notes; + private NoteArea notes; + private Rectangle box; + //private JPanel notes; + /** * Creates */ @@ -45,13 +48,28 @@ public class MooTrackView extends JPanel{ return title; } - private JPanel noteView() { - notes = new JPanel(); - notes.setLayout(new GridLayout()); - notes.setBackground(Color.white); + private JPanel noteView () { + notes = new NoteArea(); + 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); } - + + + public void paintComponent(Graphics g) { + super.paintComponent(g); + Graphics2D g2 = (Graphics2D)g; + box = new Rectangle(0,0,20,20); + g2.draw(box); + } + } + private static final int PANEL_WIDTH = 65; private static final int TITLE_HEIGHT = 20; private static final int NOTEVIEW_HEIGHT = 200; -- 2.39.2