In the former case, I can only use the JTextField and can not provide JComboBox or JCheckBox which will make the GUI friendly and reduce input error, meanwhile, the JLabel and JtableHeader's content must be the fields' name which may be not clear.
Would you like to suggest how to get not duplicate items from the db.db database by a simple method?
Should I add new feature in the Data class or pass all the record of the database as a string to the GUI constructor?
First, if I choose JComboBox, I must use it on every field and cannot use JTextField or JCheckBox
It is very difficult to choose the suitable component for the database schema by program, isn't it?
Furthermore, the JComboBox�s items list may become very long when database grow up.
Secondly, if I use the data of the database as items, we must search for the whole database before we create our GUI. It decreases the performance, increases the burden of the network, what to do when the amount of records become vast?
Thirdly, if new records are added to db after creating of GUI, new items cannot be add.
I say �it may not be clear� because in the instructions �database schema�, there are �Field descriptive name� and �Database field name�, I think it may suggest we should use the field descriptive name in GUI.
But I am still puzzled at the instructions: �Your user interface should be designed with the expectation of future functionality enhancements, and it should establish a framework that will support this with minimal disruption to the users when this occurs.�