Updating a jtable dating coworkers good idea


This method can be combined with selected Rows method.

updating a jtable-56

However, the problem I've observed is that the JTable code seems to be redrawing a rect around all the cells that have changed during a particular Event Queue loop.

So, let's say just two cells have changed 0:0 and X: Y where X = num Rows and Y = num Cols. I have called fire Table Cell Updated twice in succession on 0:0 and X: Y), in my testing, the entire table is redrawn, because the two cells in question are the upper left cell and the lower right cell in the table.

The JTable redrawing code seems to draw one big rect around both cells and ends up updated everything in between.

If I break up the calls to fire Table Cell Updated to separate passes through the Event Queue, then just the corners are updated.

I am working on a JTable where you enter the information into the table and it is saved in a SQL database.