Having 1000 students (rows) and 4 field (columns), we will run this switch 4000 times.
The premise is false, but you should profile to verify. JTable
uses the flyweight pattern for cell rendering, so only visible cells will be examined. This simplified example illustrates the essential mechanism. This related example scales well into the thousands of rows.