X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=MooInstrumentList.java;h=1b3378240502d654ca1b3dba95f42b7c189ccea1;hb=0c367374b55f5692cd8af828c2773c61707d6ac6;hp=d109227a287d17173737e08e18cd7072b3229126;hpb=2ee5615787c8377a17a91158ea18adbae1aa74c2;p=moosique.git diff --git a/MooInstrumentList.java b/MooInstrumentList.java index d109227..1b33782 100644 --- a/MooInstrumentList.java +++ b/MooInstrumentList.java @@ -12,6 +12,7 @@ import java.awt.event.*; public class MooInstrumentList extends JComboBox implements ActionListener { protected int channel; + public MooInstrumentList(int chan) { super(instruments); setChannel(chan); @@ -19,11 +20,9 @@ public class MooInstrumentList extends JComboBox implements ActionListener { addActionListener(this); } - public void setChannel(int chan){ + public void setChannel(int chan) { channel = chan; - System.out.println(chan); setSelectedIndex(Moosique.getChannel(channel).getProgram()); - System.out.println(Moosique.getChannel(channel).getProgram()); } public void actionPerformed(ActionEvent e) {