setColumnsNames(columnsNames);
}
@Override
public Object getValueAt(int rowIndex, int columnIndex) {
Customer dbObject = (Customer) data.get(rowIndex);
switch (columnIndex) {
case 0:
return dbObject.getId();
case 1:
return dbObject.getName();
case 2:
return dbObject.getMobileNo();
case 3:
return dbObject.getNotes();
default:
return null;
}
}