0
public void setTableModel(List<Users> users) {
	eraseTableRows();
	for (int i = 0; i < users.size(); i++) {
		Users u = users.get(i);
		tm.insertRow(i, new Object[] { stuff });
		}
		
	}

private void eraseTableRows() {
        for (int i = 0; i > tm.getRowCount(); i++) {
	         tm.removeRow(i);
	}

i've tried this and the setRowCount and none of these work

Thanks in advance

1
Contributor
1
Reply
2
Views
8 Years
Discussion Span
Last Post by white feather
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.