@Override public Object getValueAt(int row, int column) { AccountsPayable record = (AccountsPayable) data.get(row); switch (column) { case 0: return record.getDate(); case 1: return record.getVendor(); case 2: return record.getPurchase(); case 3: return record.getTerms(); case 4: return formatter.format(record.getAmount()).replace("$", ""); case 5: return record.getStatus(); case 6: return record.getTermsdays(); case 7: return record.getDue(); case 8: return record.getOverdue(); default: return new Object(); } }
public int getRowCount() { return data.size(); }