private void newSong() {
        boolean cont = true;
        if (StateMachine.isSongModified())
            cont = Dialog
                    .showYesNoDialog("The current song has been modified!\n"
                            + "Create a new song anyway?");

        if (cont) {
            theStaff.setSequence(new StaffSequence());
            theStaff.setSequenceFile(null);
            Slider sc = theStaff.getControlPanel().getScrollbar();
            sc.setValue(0);
            sc.setMax(Values.DEFAULT_LINES_PER_SONG - 10);
            ArrowButton.setEndOfFile(false);
            theStaff.getNoteMatrix().redraw();
            controller.getNameTextField().clear();
            StateMachine.setSongModified(false);
        }
    }