X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=MooTrackTitle.java;h=0eb3128db8ccd4f5980cd198afe20840d87ccf3f;hb=e51ef43d65b5f80706a8f3a470c04ef826641ee4;hp=25f54a144d52dd9277e28d36283e85f7bb9f4611;hpb=d7666fadd2f8baca8a03cacae836f2563fe4dd5d;p=moosique.git diff --git a/MooTrackTitle.java b/MooTrackTitle.java index 25f54a1..0eb3128 100644 --- a/MooTrackTitle.java +++ b/MooTrackTitle.java @@ -1,4 +1,6 @@ import javax.swing.*; +import java.awt.*; +import java.awt.event.*; /** * The title bar for each track with track name, channel, instrument etc. @@ -7,12 +9,32 @@ import javax.swing.*; * @version 1 */ -public class MooTrackTitle { +public class MooTrackTitle extends JPanel{ + private MooInstrumentList instruments; + //private JSpinner channel; + private JCheckBox mute; + private JCheckBox solo; /** * Creates the title bar. */ public MooTrackTitle () { - + setLayout(new GridLayout(1,3)); + instruments = new MooInstrumentList(); + add(instruments); + mute = new JCheckBox("Mute"); + mute.addActionListener(new ActionListener(){ + public void actionPerformed(ActionEvent event){ + //setMute + solo.setSelected(false); + }}); + add(mute); + solo = new JCheckBox("Solo"); + solo.addActionListener(new ActionListener(){ + public void actionPerformed(ActionEvent event){ + //setSolo + mute.setSelected(false); + }}); + add(solo); } }