From aa695d60dbd53407f60548ec18ed7be4e65937ce Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20Lanneskog?= Date: Sat, 10 May 2003 14:45:37 +0000 Subject: [PATCH] =?utf8?q?vad=20s=E4gs=20om=20bordern=3F?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- MooToolbar.java | 22 ++++++++++++---------- MooTrackView.java | 4 ++-- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/MooToolbar.java b/MooToolbar.java index 8df4f86..ebb626e 100644 --- a/MooToolbar.java +++ b/MooToolbar.java @@ -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; diff --git a/MooTrackView.java b/MooTrackView.java index 19888e8..bcbfc09 100644 --- a/MooTrackView.java +++ b/MooTrackView.java @@ -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; } -- 2.39.2