import javax.swing.*;
+import java.awt.*;
+import java.awt.event.*;
-/*
+/**
* The title bar for each track with track name, channel, instrument etc.
*
* @author Andersson, Andreen, Lanneskog, Pehrson
* @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 () {
-
- }
-
- /*
- *
- */
- public void () {
-
+ 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);
}
}