I came up with this loop here:
for(int i = 0; i < memberArrayList.size(); i++){
int j = 0;
memberTable.setValueAt(memberArrayList.get(i).g
The answer will depend on what type of TableModel
you are using, for example, if you are using a DefaultTableModel
you could use something like...
DefaultTableModel memberTable= ...;
for(int i = 0; i < memberArrayList.size(); i++){
Object[] rowData = new Object[]{
memberArrayList.get(i).getFirstName(),
memberArrayList.get(i).getLastName(),
memberArrayList.get(i).getEmail(),
memberArrayList.get(i).getPhoneNumber(),
memberArrayList.get(i).getLevel()
};
memberTable.addRow(rowData);
}
This assumes that you only want to add rows to the end of the table model ;)
Personally, I'd prefer to add each member to the table model as a single entity, but that's just me
Take a look at How to Use Tables for more details...