]> ruin.nu Git - moosique.git/blobdiff - MooTrackTitle.java
no message
[moosique.git] / MooTrackTitle.java
index d107b2c858342831c2dbcaa8f45ec5f91118b596..ef333efc4d05894116967385dbec70687fd67b9c 100644 (file)
@@ -19,19 +19,16 @@ public class MooTrackTitle extends JPanel{
         * Creates the title bar.
         */
        public MooTrackTitle () {
-               setLayout(new GridLayout(1,3));
+               setLayout(new GridLayout(2,2));
                instruments = new MooInstrumentList();
                add(instruments);
 
                channel = new JComboBox();
-               for (int i = 0; i < 16; i++)
+               for (int i = 1; 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();
+                                       Object ob = channel.getSelectedItem();
                                        if (ob instanceof Integer){
                                                //set channel
                                        }