From: Michael Andreen Date: Mon, 5 May 2003 15:31:36 +0000 (+0000) Subject: getting more and more ready.. X-Git-Url: https://ruin.nu/git/?p=moosique.git;a=commitdiff_plain;h=213f4f47aeddce5e56a1f4c2f58eb870da34f70d getting more and more ready.. --- diff --git a/MooTrackTitle.java b/MooTrackTitle.java index 0eb3128..d107b2c 100644 --- a/MooTrackTitle.java +++ b/MooTrackTitle.java @@ -12,7 +12,7 @@ import java.awt.event.*; public class MooTrackTitle extends JPanel{ private MooInstrumentList instruments; - //private JSpinner channel; + private JComboBox channel; private JCheckBox mute; private JCheckBox solo; /** @@ -22,6 +22,22 @@ public class MooTrackTitle extends JPanel{ 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){ @@ -29,6 +45,7 @@ public class MooTrackTitle extends JPanel{ solo.setSelected(false); }}); add(mute); + solo = new JCheckBox("Solo"); solo.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent event){