setBorder(BorderFactory.createLineBorder(Color.black));
setPreferredSize(new Dimension(MooTrackView.VIEW_WIDTH,70));
- title = new JTextField(trackName); // JTextField(String text, int columns)
+ title = new JTextField(trackName);
title.setFont(Moosique.getGUI().FONT);
title.addFocusListener(new TitleFocusListener());
add(title);
-
- JPanel checkboxes = new JPanel();
- checkboxes.setLayout(new GridLayout(1,3));
-
channelBox = new JComboBox();
channelBox.setFont(Moosique.getGUI().FONT);
for (int i = 1; i <= 16; i++)
channelBox.setSelectedIndex(channel);
instruments = new MooInstrumentList(channelBox.getSelectedIndex());
-
- instruments = new MooInstrumentList(channelBox.getSelectedIndex());
+ add(instruments);
channelBox.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
mn.setChannel(chan);
}
}}});
- channelBox.setSelectedIndex(channel);
-
- add(instruments);
add(channelBox);
+ JPanel checkboxes = new JPanel();
+ checkboxes.setLayout(new GridLayout(1,3));
+
mute = new JCheckBox("Mute");
mute.setSelected(Moosique.getSequencer().getTrackMute(trackNum));
mute.setFont(Moosique.getGUI().FONT);