Hi Mark
Who should set the TableModel for JTable using table.setModel(new MyTableModel())
1) The View itself
or
2) The GUI controller
What i believe is that the View should not be worried abt the model.
How did u handled this ???
As far as origin and destination airports are concerned, the mode selection form controller pass it to the Booking Form constructor as:
obj = new BookingForm(DataInfo[] roigin, DatraInfo destination[])
obj.show()
Is this correct ???
Amit
Who should set the TableModel for JTable using table.setModel(new MyTableModel())
1) The View itself
or
2) The GUI controller
What i believe is that the View should not be worried abt the model.
How did u handled this ???
As far as origin and destination airports are concerned, the mode selection form controller pass it to the Booking Form constructor as:
obj = new BookingForm(DataInfo[] roigin, DatraInfo destination[])
obj.show()
Is this correct ???
Amit