]> ruin.nu Git - moosique.git/commitdiff
some gui changes..
authorMichael Andreen <harv@ruin.nu>
Fri, 9 May 2003 16:01:48 +0000 (16:01 +0000)
committerMichael Andreen <harv@ruin.nu>
Fri, 9 May 2003 16:01:48 +0000 (16:01 +0000)
MooTrackTitle.java
MooTrackView.java

index ef333efc4d05894116967385dbec70687fd67b9c..b24931f0cc5cc7907f42461bab4f4dec1dbd94a5 100644 (file)
@@ -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);
        }
 }
index abf79cada0137b25a9d684b29c4efe2ebe1f4a07..4bce7b2fe41f7e44c160844e5c37be294a0ae7d4 100644 (file)
@@ -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;
 }