public class MooTrackTitle extends JPanel{
private MooInstrumentList instruments;
- //private JSpinner channel;
+ private JComboBox channel;
private JCheckBox mute;
private JCheckBox solo;
/**
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){
solo.setSelected(false);
}});
add(mute);
+
solo = new JCheckBox("Solo");
solo.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent event){