]> ruin.nu Git - moosique.git/commitdiff
getting more and more ready..
authorMichael Andreen <harv@ruin.nu>
Mon, 5 May 2003 15:31:36 +0000 (15:31 +0000)
committerMichael Andreen <harv@ruin.nu>
Mon, 5 May 2003 15:31:36 +0000 (15:31 +0000)
MooTrackTitle.java

index 0eb3128db8ccd4f5980cd198afe20840d87ccf3f..d107b2c858342831c2dbcaa8f45ec5f91118b596 100644 (file)
@@ -12,7 +12,7 @@ import java.awt.event.*;
 public class MooTrackTitle extends JPanel{
 
        private MooInstrumentList instruments;
-       //private JSpinner channel;
+       private JComboBox channel;
        private JCheckBox mute;
        private JCheckBox solo;
        /** 
@@ -22,6 +22,22 @@ public class MooTrackTitle extends JPanel{
                setLayout(new GridLayout(1,3));
                instruments = new MooInstrumentList();
                add(instruments);
+
+               channel = new JComboBox();
+               for (int i = 0; i < 16; i++)
+                       channel.addItem(new Integer(i));
+               channel.addItemListener(new ItemListener(){
+                               public void itemStateChanged(ItemEvent e){
+                                       if (e.getStateChange() != e.SELECTED)
+                                               return; //return if this even isn't the selection event.
+
+                                       Object ob = e.getItem();
+                                       if (ob instanceof Integer){
+                                               //set channel
+                                       }
+                               }});
+               add(channel);
+               
                mute = new JCheckBox("Mute");
                mute.addActionListener(new ActionListener(){
                                public void actionPerformed(ActionEvent event){
@@ -29,6 +45,7 @@ public class MooTrackTitle extends JPanel{
                                        solo.setSelected(false);
                                }});
                add(mute);
+
                solo = new JCheckBox("Solo");
                solo.addActionListener(new ActionListener(){
                                public void actionPerformed(ActionEvent event){