]> ruin.nu Git - moosique.git/blobdiff - MooTrackTitle.java
some minor changes
[moosique.git] / MooTrackTitle.java
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);
        }
 }