]> ruin.nu Git - moosique.git/blobdiff - MooInstrumentList.java
*** empty log message ***
[moosique.git] / MooInstrumentList.java
index 88903e039eb838360a771b3129d3201819052f74..8f1afcb4728b25a92ec6103a41eb84405c0999d4 100644 (file)
@@ -12,9 +12,10 @@ import java.awt.event.*;
 public class MooInstrumentList extends JComboBox implements ActionListener {
 
        protected int channel;
-       public MooInstrumentList(int chan) {
+
+       public MooInstrumentList(int instrument) {
                super(instruments);
-               setChannel(chan);
+               setSelectedIndex(instrument);
                setFont(new Font("Helvetica", Font.PLAIN, 10));
                addActionListener(this);
        }
@@ -23,6 +24,7 @@ public class MooInstrumentList extends JComboBox implements ActionListener {
                channel = chan;
                setSelectedIndex(Moosique.getChannel(chan).getProgram());
        }
+
        public void actionPerformed(ActionEvent e) {
                JComboBox box = (JComboBox)e.getSource();
                int instrument = box.getSelectedIndex();