Currently I am working on a GUI dealing with JTable.
I am having a problem with one of my JTable.
In my HospitalGUI.java the following code:
JPanel p3 = new JPanel(new GridLayout(2,1));
tableProcedure = new JTable();
where I am suppose to set the tablemodel.
I have also created my own table model with the file name procedureDefaultModel.java
The problem I am facing is to create the tablemodel for procedure.
HealthService is the controller class. Health service is link to an abstract class MedicalFacility. MedicalFacility has two sub classes Hospital and HealthClinic. The Hospital is link to the procedure.
As for my other table models it works fine, but for procedureDefaultModel im having problems.
How do I solve this problem?
You can download the code from www.mutaiyas.com/db/GUI.zip
Your help is kindly appreciated.