]> ruin.nu Git - moosique.git/commitdiff
no message
authorRoland Andersson <rolaande@itstud.chalmers.se>
Wed, 7 May 2003 12:59:13 +0000 (12:59 +0000)
committerRoland Andersson <rolaande@itstud.chalmers.se>
Wed, 7 May 2003 12:59:13 +0000 (12:59 +0000)
MooTrackView.java

index 62381b9718f64df401000d701dcd455cf47ece85..bbb740273efc7ecd2f4685cc86f63c3820163cdf 100644 (file)
@@ -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;