In my HospitalGUI.java I hava a JTable tablePatient,
as well as a patientDefaultModel pdm.
In my patientDefaultModel.java, under my getValueAt(),
I have the following code:
and in my HospitalGUI.java I have the following code:
MedicalFacility mf = null;
e() && mf==null;i++)
mf = (MedicalFacility) tablePatient.getValueAt(i,
which wont work, because
returns a string and not an MedicalFacility object.
How do I solve the problem?.
You can download the code from:
Your help is kindly appreciated.