Experiment. Try running the program with only one of the setValueAt() statements (just comment the others out). Try each one in order, one at a time, and see what results you get after each run. ...