]> ruin.nu Git - moosique.git/commitdiff
some minor changes
authorMichael Andreen <harv@ruin.nu>
Mon, 5 May 2003 11:01:56 +0000 (11:01 +0000)
committerMichael Andreen <harv@ruin.nu>
Mon, 5 May 2003 11:01:56 +0000 (11:01 +0000)
MooNoteElement.java
MooTrackTitle.java

index b42bcb96e73f2a2b532ae28e72b02d79cfe3f248..40ab0a4fca2ec68e6ac58cc0ca231c749a6928b7 100644 (file)
@@ -42,7 +42,7 @@ public class MooNoteElement extends JPanel{
                        
        }
 
-       /***
+       /**
         *
         */
        public void paintComponent(Graphics g)
@@ -53,7 +53,6 @@ public class MooNoteElement extends JPanel{
                        return;
                Graphics2D g2 = (Graphics2D)g;
 
-               //Draw the note representation
        }
                        
 }
index e388e4d2b6fdd38379d44ac992661060d7ec5611..0eb3128db8ccd4f5980cd198afe20840d87ccf3f 100644 (file)
@@ -1,4 +1,6 @@
 import javax.swing.*;
+import java.awt.*;
+import java.awt.event.*;
 
 /**
  * The title bar for each track with track name, channel, instrument etc.
@@ -9,10 +11,30 @@ import javax.swing.*;
  
 public class MooTrackTitle extends JPanel{
 
+       private MooInstrumentList instruments;
+       //private JSpinner channel;
+       private JCheckBox mute;
+       private JCheckBox solo;
        /** 
         * Creates the title bar.
         */
        public MooTrackTitle () {
-
+               setLayout(new GridLayout(1,3));
+               instruments = new MooInstrumentList();
+               add(instruments);
+               mute = new JCheckBox("Mute");
+               mute.addActionListener(new ActionListener(){
+                               public void actionPerformed(ActionEvent event){
+                                       //setMute
+                                       solo.setSelected(false);
+                               }});
+               add(mute);
+               solo = new JCheckBox("Solo");
+               solo.addActionListener(new ActionListener(){
+                               public void actionPerformed(ActionEvent event){
+                                       //setSolo
+                                       mute.setSelected(false);
+                               }});
+               add(solo);
        }
 }