I have created a GUI which draws a graph. I want that when the user clicks on the close button of the window the program asks him to save his work before exiting if he has n