Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JTable: add row, delete row, change sort, reload data.

holodMar 20 2007 — edited Aug 30 2007
I 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?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 27 2007
Added on Mar 20 2007
8 comments
1,010 views