loadSong();
}
}
public void loadSong() {
Song s = ScreenRunner.songs.get(songEditorCurrentSong);
if(s != null) {
ignoreChanges = true;
songEditorTitleField.setText(s.getTitle());
songEditorAuthorField.setText(s.getAuthor());
songEditorCopyrightField.setText(s.getCopyright());
songEditorCcliField.setText(s.getCCLINumber());
songEditorPresentationField.setText(s.getPresentationOrder());
songEditorHymnField.setText(s.getHymnNumber());
songEditorLyricsArea.setText(s.getLyrics());
songEditorCapoCombo.setSelectedItem(s.getCapo());
songEditorKeyField.setText(s.getKey());
songEditorAkaField.setText(s.getAKA());
songEditorTimeSigCombo.setSelectedItem(s.getTimeSignature());
songEditorTempoCombo.setSelectedItem(s.getTempo());
songEditorKeyLineField.setText(s.getKeyLine());
songEditorUser1Area.setText(s.getUser1());
songEditorUser1Area.setText(s.getUser2());
songEditorUser1Area.setText(s.getUser3());
songEditorUserSelectorCombo.setSelectedItem("User 1");
songEditorThemeList = new Vector<String>();
String[] themes = s.getThemes();
for(int i = 0; i < themes.length; i++) {
songEditorThemeList.add(themes[i]);
}
ignoreChanges = false;