public Object getValueAt(int rowIndex, int columnIndex) { HostItem hi = (HostItem) set.getAll().get(rowIndex); switch (columnIndex) { case 0: return hi.getName(); case 1: return hi.getJobsRunning(); case 2: return hi.getJobsAllowed(); case 3: return hi.getOverload(); case 4: return hi.getScore(); default: return "?"; } }
public int getRowCount() { return set.size(); }