[Demonstration 1]

[Buggy Method]
public void showStartScreen() {
    try {
        System.out.println("in showAdmin");
        FXMLLoader loader = new FXMLLoader(getClass().getResource("../resources/view/Root.fxml"));
        AnchorPane anchorPane = loader.load();
        loader.setController(this);
        Ui.getChildren().clear();
        Ui.getChildren().add(anchorPane);
        Ui.setBottomAnchor(anchorPane, 0.0);
        Ui.setTopAnchor(anchorPane, 0.0);
        Ui.setLeftAnchor(anchorPane, 0.0);
        Ui.setRightAnchor(anchorPane, 0.0);
    } catch (IOException e) {
        e.printStackTrace();
    }
}

[Buggy Hunk]
FXMLLoader loader = new FXMLLoader(getClass().getResource("../resources/view/Root.fxml"));

[Patch]
FXMLLoader loader = new FXMLLoader(com.team9.bookingsystem.Ui.class.getResource("resources/view/Root.fxml"));

[Demonstration 2]

[Buggy Method]
private void gameEnded(String message, String title) {
    String actual = StringUtilities.delimit(game.getCurrentWord(), ' ');
    updateStatistics();
    currentLabel.setText(actual);
    setStateOf(keyboardPanel, false);
    giveUpButton.setEnabled(false);
    hintButton.setEnabled(false);
    hintButton.setText("Hint");
    showMessagePane(message, title);
}

[Buggy Hunk]
currentLabel.setText(actual);

[Patch]
currentWordLabel.setText(actual);

[Demonstration 3]

[Buggy Method]
public void dialogWindow(ActionEvent actionEvent, String pathToFxml, String titleText) {
    try {
        Stage stage = new Stage();
        Parent root = FXMLLoader.load(getClass().getResource(pathToFxml));
        stage.setTitle(titleText);
        stage.setMinHeight(100);
        stage.setMinWidth(300);
        stage.setResizable(false);
        stage.setScene(new Scene(root));
        stage.initModality(Modality.WINDOW_MODAL);
        stage.initOwner(((Node) actionEvent.getSource()).getScene().getWindow());
        stage.showAndWait();
    } catch (IOException e) {
        e.printStackTrace();
    }
}

[Buggy Hunk]
public void dialogWindow(ActionEvent actionEvent, String pathToFxml, String titleText){

[Patch]
private void dialogWindow(ActionEvent actionEvent, String pathToFxml, String titleText){