1 package camidion.chordhelper;
3 import javax.swing.JLabel;
5 import camidion.chordhelper.midieditor.SequenceTrackListTableModel;
7 public class SongTitleLabel extends JLabel {
9 setText("<html>[No MIDI file loaded]</html>");
11 public void setSongTitle(int songIndex, SequenceTrackListTableModel sequenceModel) {
12 String title = sequenceModel.toString();
13 String titleHtml = title.isEmpty()?"[Untitled]":"<font color=maroon>"+title+"</font>";
14 setText("<html>MIDI file " + songIndex + ": " + titleHtml + "</html>");