String newName = InputBox.showDialog("Enter a name for the song:", "Save As", InputBox.ICON_NONE, songEditorCurrentSong);
if(newName == null || newName.length() == 0) return;
Song s = Song.createNew(songEditorTitleField.getText());
songEditorCurrentSong = newName;
songEditorDataToSong(s);
s.saveAs(songEditorCurrentSong);
ScreenRunner.songs.set(songEditorCurrentSong, s);
setSongEditorModified(false);
loadSong();
}