asiavoices
Programmer
Hello all,
I've read about JDBC, JTable and Table models and am still having a bit of difficulty in visualizing how I could populate a JTable using my recordset. The examples I've read uses arrays so any code example you could contribute would be great.
Goal:
1. Query the db and create a recordset.
2. Load the recordset into a JTable.
3. Select the row to display the contents onto another view (ie. form)
4. Ability to EDIT the record and updated on the database.
4. Able to delete the entire row in JTable and db.
Am I correct to assume that I should extend Abstract Table Model and use this as my table model? if so how?
Thank you,
Christopher
I've read about JDBC, JTable and Table models and am still having a bit of difficulty in visualizing how I could populate a JTable using my recordset. The examples I've read uses arrays so any code example you could contribute would be great.
Goal:
1. Query the db and create a recordset.
2. Load the recordset into a JTable.
3. Select the row to display the contents onto another view (ie. form)
4. Ability to EDIT the record and updated on the database.
4. Able to delete the entire row in JTable and db.
Am I correct to assume that I should extend Abstract Table Model and use this as my table model? if so how?
Thank you,
Christopher