In my HospitalGUI.java I have the foolowing code:
The codes in the if clause is suppose to delete the Medical Facility along with its procedures.
I also have the functionality of saving and loading in my HospitalGUI.java.
It seems that when ever I load the patients and the medical facility and the procedures, and then I try to delete the medical facility I get errors.
However when I dont load the objects, but add the procedures and etc, and then try to delete the medical facility it works fine.
You can download the program from:
along with the download I have included a .txt file, which you would be able to load from the GUI.
How do I solve this problem?.
Your help is kindly appreciated.