public Object getValueAt(int row, int col) { Dvd theDvd = data.get(row); Object theData = null; switch (col) { case 0: theData = theDvd.getTitle(); break; case 1: theData = theDvd.getCategory(); break; case 2: theData = theDvd.getRunningTime(); break; case 3: theData = theDvd.getYearReleased(); break; case 4: theData = theDvd.getPrice(); break; default: break; } return theData; }