Reputation: 1139
I have two questions about jtable and default table model
JTable table = new JTable();
TableModel model = new DefaultTableModel(colNames,rowcount);
table.setModel(model);
Upvotes: 0
Views: 683
Reputation: 205785
You'll need to proceed in several steps:
Start with How to Use Tables.
This example illustrates Using a Combo Box as an Editor.
This example shows how to override setValueAt()
, from which you can update your database using JDBC.
Once you understand these concepts, consider DbUtils
.
Upvotes: 5