From: Michael Andreen Date: Tue, 13 May 2003 17:32:52 +0000 (+0000) Subject: hmm.. X-Git-Url: https://ruin.nu/git/?p=moosique.git;a=commitdiff_plain;h=376f6da8899d046551ba0b50ea527b72ef4db39d hmm.. --- diff --git a/MooTrackTitle.java b/MooTrackTitle.java index cc17d17..74e7a1e 100644 --- a/MooTrackTitle.java +++ b/MooTrackTitle.java @@ -63,8 +63,6 @@ public class MooTrackTitle extends JPanel { title.addFocusListener(new TitleFocusListener()); add(title); - instruments = new MooInstrumentList(programChange); - add(instruments); JPanel checkboxes = new JPanel(); checkboxes.setLayout(new GridLayout(1,3)); @@ -85,6 +83,8 @@ public class MooTrackTitle extends JPanel { instruments = new MooInstrumentList(channelBox.getSelectedIndex()); + instruments = new MooInstrumentList(channelBox.getSelectedIndex()); + channelBox.addActionListener(new ActionListener(){ public void actionPerformed(ActionEvent e){ int chan = channelBox.getSelectedIndex(); @@ -99,6 +99,8 @@ public class MooTrackTitle extends JPanel { } }}}); channelBox.setSelectedIndex(channel); + + add(instruments); add(channelBox); mute = new JCheckBox("Mute");