Changed the main JFrame window default close operation to do nothing.

Implemented anonymous inner class to handle the window closing event allowing me to check if data has been saved and prompt user to save before exiting.