From c2748347377f35e9166ea44a69b440abdae8e067 Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Fri, 9 May 2003 16:01:48 +0000 Subject: [PATCH] some gui changes.. --- MooTrackTitle.java | 14 +++++++++++--- MooTrackView.java | 10 ++++++---- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/MooTrackTitle.java b/MooTrackTitle.java index ef333ef..b24931f 100644 --- a/MooTrackTitle.java +++ b/MooTrackTitle.java @@ -19,11 +19,15 @@ public class MooTrackTitle extends JPanel{ * Creates the title bar. */ public MooTrackTitle () { - setLayout(new GridLayout(2,2)); + setLayout(new GridLayout(3,1)); instruments = new MooInstrumentList(); add(instruments); + JPanel checkboxes = new JPanel(); + checkboxes.setLayout(new GridLayout(1,3)); + channel = new JComboBox(); + channel.setFont(new Font("Helvetica", Font.PLAIN, 10)); for (int i = 1; i <= 16; i++) channel.addItem(new Integer(i)); channel.addItemListener(new ItemListener(){ @@ -35,20 +39,24 @@ public class MooTrackTitle extends JPanel{ }}); add(channel); + mute = new JCheckBox("Mute"); + mute.setFont(new Font("Helvetica", Font.PLAIN, 10)); mute.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent event){ //setMute solo.setSelected(false); }}); - add(mute); + checkboxes.add(mute); solo = new JCheckBox("Solo"); + solo.setFont(new Font("Helvetica", Font.PLAIN, 10)); solo.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent event){ //setSolo mute.setSelected(false); }}); - add(solo); + checkboxes.add(solo); + add(checkboxes); } } diff --git a/MooTrackView.java b/MooTrackView.java index abf79ca..4bce7b2 100644 --- a/MooTrackView.java +++ b/MooTrackView.java @@ -15,6 +15,12 @@ public class MooTrackView extends JPanel { private NoteArea notes; private Rectangle box; //private Rectangle box2; + //private JPanel notes; + + private static final int PANEL_WIDTH = 65; + private static final int TITLE_HEIGHT = 45; + private static final int NOTEVIEW_HEIGHT = 200; + /** * Creates */ @@ -57,8 +63,4 @@ public class MooTrackView extends JPanel { } } } - - private static final int PANEL_WIDTH = 65; - private static final int TITLE_HEIGHT = 40; - private static final int NOTEVIEW_HEIGHT = 200; } -- 2.39.2