]> ruin.nu Git - moosique.git/commitdiff
*** empty log message ***
authorBjörn Lanneskog <lannesko@itstud.chalmers.se>
Sun, 11 May 2003 19:04:40 +0000 (19:04 +0000)
committerBjörn Lanneskog <lannesko@itstud.chalmers.se>
Sun, 11 May 2003 19:04:40 +0000 (19:04 +0000)
MooToolbar.java

index 3574d2bb6ba8b8d7867ef5f408fa9114f228d37d..a2f55712fac336c7e0df85fbc0ae85e190b9f55d 100644 (file)
@@ -14,6 +14,7 @@ public class MooToolbar extends JToolBar {
        private JLabel measure, beats, ticks, measurevalue, beatsvalue, ticksvalue;
        private ImageIcon playIcon, pauseIcon;
        private MooMouseAdapter mouseAdapter;
+       public static final Color bgColor = new Color(192, 224, 255);
        
        /**
         * Creates the toolbar.
@@ -45,11 +46,19 @@ public class MooToolbar extends JToolBar {
                measurevalue = createLabel("1", 16);
                beatsvalue = createLabel("1",16);
                ticksvalue = createLabel("1",16);
-               progIndPanel.add(new JPanel());
+               
+               JPanel spacenorth = new JPanel();
+               spacenorth.setBackground(bgColor);
+               progIndPanel.add(spacenorth);
+               
                progIndPanel.add(measure);
                progIndPanel.add(beats);
                progIndPanel.add(ticks);
-               progIndPanel.add(new JPanel());
+               
+               JPanel spacesouth = new JPanel();
+               spacesouth.setBackground(bgColor);
+               progIndPanel.add(spacesouth);
+               
                progIndPanel.add(measurevalue);
                progIndPanel.add(beatsvalue);
                progIndPanel.add(ticksvalue);