I have created a GUI which draws a graph. I want that when you click on the close button to quit the application, the program displays a dialog box that asks to save the wor