]> ruin.nu Git - moosique.git/commitdiff
vad sägs om bordern?
authorBjörn Lanneskog <lannesko@itstud.chalmers.se>
Sat, 10 May 2003 14:45:37 +0000 (14:45 +0000)
committerBjörn Lanneskog <lannesko@itstud.chalmers.se>
Sat, 10 May 2003 14:45:37 +0000 (14:45 +0000)
MooToolbar.java
MooTrackView.java

index 8df4f862e702a2d388b5aad06b3937a5efebf754..ebb626e9ed06db1569251158e6fa0363f246ffa5 100644 (file)
@@ -33,30 +33,31 @@ public class MooToolbar extends JToolBar implements ActionListener  {
                add(fastforward);
                
                JPanel panel = new JPanel();
-               panel.setMaximumSize(new Dimension(100,22));
+               panel.setMaximumSize(new Dimension(120,27));
                panel.setLayout(new GridLayout(2,4));
+               
                add(panel);
                
                panel.add(new JPanel());
                
-               measure = createProjIndLabel("Mrs",10);
+               measure = createProjIndLabel("Mrs", 10);
                panel.add(measure);
                
-               beats = createProjIndLabel("Beat",10);
+               beats = createProjIndLabel("Beat", 10);
                panel.add(beats);
                
-               ticks = createProjIndLabel("Tick",10);
+               ticks = createProjIndLabel("Tick", 10);
                panel.add(ticks);
                
                panel.add(new JPanel());
                
-               measurevalue = createProjIndLabel("1",10);
+               measurevalue = createProjIndLabel("1", 12);
                panel.add(measurevalue);
                
-               beatsvalue = createProjIndLabel("1",10);
+               beatsvalue = createProjIndLabel("1",12);
                panel.add(beatsvalue);
                
-               ticksvalue = createProjIndLabel("1",10);
+               ticksvalue = createProjIndLabel("1", 12);
                panel.add(ticksvalue);
                
                playimage = Toolkit.getDefaultToolkit().getImage("images/play.gif");
@@ -81,15 +82,16 @@ public class MooToolbar extends JToolBar implements ActionListener  {
                 * creates JLabels for the progressindikator, attached to the toolbar
                 * @param title         the titel displayed on the label
                 * @param fontsize      the fontzise of the text displayed on the label
-                * @param titelvalue    the label that is a part of the progressindikator
+                * @param fontstyle     the fontstyle of the text displayed on the label
+                * @return titelvalue   the label that is a part of the progressindikator
                 */
                private JLabel createProjIndLabel(String title, int fontsize){
                        JLabel titelvalue = new JLabel(title,JLabel.CENTER);
                        titelvalue.setFont(new Font("Times New Roman",
-                       Font.PLAIN ,fontsize));
+                       Font.BOLD ,fontsize));
+                       titelvalue.setBorder(BorderFactory.createLineBorder(Color.black));
                        return titelvalue;
                }
-               
                // int pos = Moosique.getSequencer().getTickPosition();
                // int measures = pos / (4 * Moosique.getSequence.get)
                // int beats = (pos - measures * 4 * 96) / 96;
index 19888e877637a82fc39963ecc76520509419aca1..bcbfc09e1e2d8e5464c745d40cff1a6327af62a1 100644 (file)
@@ -96,7 +96,7 @@ public class MooTrackView extends JPanel implements ActionListener {
         }
     }
        
-       private static final int PANEL_WIDTH = 65;
-       private static final int TITLE_HEIGHT = 60;
+       private static final int PANEL_WIDTH = 60;
+       private static final int TITLE_HEIGHT = 55;
        private static final int NOTEVIEW_HEIGHT = 200;
 }