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

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