package com.gitrekt.resort.controller;

import java.net.URL;
import java.util.ResourceBundle;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.stage.Stage;

/**
 * FXML Controller class for the leave feedback screen.
 */
public class LeaveFeedbackScreenController implements Initializable {


     @FXML 
     private javafx.scene.control.Button submitButton;
    
    /**
     * Closes the window and saves the user's feedback to a database
     * @param event 
     */
     
    @FXML
    private void onSubmitButtonClicked(ActionEvent event) {
        
         Stage stage = (Stage) submitButton.getScene().getWindow();
          //TODO Add feedback to database
          stage.close();
    }

    @Override
    public void initialize(URL url, ResourceBundle rb) {
        // TODO
    }
    }
    

    
    


    
@@ -341,17 +341,21 @@
 zable %7B%0A
-%0A
+     
 %0A     @F
@@ -415,24 +415,123 @@
 utton;%0A    %0A
+    @Override%0A    public void initialize(URL url, ResourceBundle rb) %7B%0A        // TODO%0A    %7D%0A     %0A
     /**%0A    
@@ -623,20 +623,16 @@
 %0A     */
-%0A   
   %0A    @
@@ -704,24 +704,16 @@
         
-%0A       
   Stage 
@@ -842,106 +842,8 @@
   %7D%0A
-%0A    @Override%0A    public void initialize(URL url, ResourceBundle rb) %7B%0A        // TODO%0A    %7D%0A    
 %7D%0A  
@@ -858,12 +858,13 @@
 %0A    %0A%0A%0A    
+%0A

Update LeaveFeedbackScreenController.java