* Creates the title bar.
*/
public MooTrackTitle () {
- setLayout(new GridLayout(2,2));
+ setLayout(new GridLayout(3,1));
instruments = new MooInstrumentList();
add(instruments);
+ JPanel checkboxes = new JPanel();
+ checkboxes.setLayout(new GridLayout(1,3));
+
channel = new JComboBox();
+ channel.setFont(new Font("Helvetica", Font.PLAIN, 10));
for (int i = 1; i <= 16; i++)
channel.addItem(new Integer(i));
channel.addItemListener(new ItemListener(){
}});
add(channel);
+
mute = new JCheckBox("Mute");
+ mute.setFont(new Font("Helvetica", Font.PLAIN, 10));
mute.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent event){
//setMute
solo.setSelected(false);
}});
- add(mute);
+ checkboxes.add(mute);
solo = new JCheckBox("Solo");
+ solo.setFont(new Font("Helvetica", Font.PLAIN, 10));
solo.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent event){
//setSolo
mute.setSelected(false);
}});
- add(solo);
+ checkboxes.add(solo);
+ add(checkboxes);
}
}
private NoteArea notes;
private Rectangle box;
//private Rectangle box2;
+ //private JPanel notes;
+
+ private static final int PANEL_WIDTH = 65;
+ private static final int TITLE_HEIGHT = 45;
+ private static final int NOTEVIEW_HEIGHT = 200;
+
/**
* Creates
*/
}
}
}
-
- private static final int PANEL_WIDTH = 65;
- private static final int TITLE_HEIGHT = 40;
- private static final int NOTEVIEW_HEIGHT = 200;
}