Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #107.55K
1 Posted Topic
Re: This is more efficient way: [code] //deletes ALL the rows DefaultTableModel.getDataVector().removeAllElements(); //repaints the table and notify all listeners (only once!) DefaultTableModel.fireTableDataChanged(); [/code] If you do this [code] while (mortgageTable.getRowCount() > 0) { ((DefaultTableModel) mortgageTable.getModel()).removeRow(0); } [/code] This will fire notificantions to all the listeners everytime you delete one row, so, … |
The End.