JTable: add row, delete row, change sort, reload data.
holodMar 20 2007 — edited Aug 30 2007I have JTable. Jtable is placed on JPanel.
I want to add some buttons to this JPanel:
1.Add row (adds empty row to table)
2.Delete row (deletes secected row)
3. Reload data (I get data from DB, wit this button I will change SORT ORDER and SELECT condition (I will not change structure of table, I will only reduce quantity of displaed data with help of new SQL query)
How Can I control JTable, JTable model with buttons, placed on the same JPanel?