title.addFocusListener(new TitleFocusListener());
add(title);
- instruments = new MooInstrumentList(programChange);
- add(instruments);
JPanel checkboxes = new JPanel();
checkboxes.setLayout(new GridLayout(1,3));
instruments = new MooInstrumentList(channelBox.getSelectedIndex());
+ instruments = new MooInstrumentList(channelBox.getSelectedIndex());
+
channelBox.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
int chan = channelBox.getSelectedIndex();
}
}}});
channelBox.setSelectedIndex(channel);
+
+ add(instruments);
add(channelBox);
mute = new JCheckBox("Mute");