Hi Audrius, Am Freitag, den 17.02.2006, 17:05 +0100 schrieb Audrius Meskauskas: > The current BasicTableUI.java.paint is written such as if the cells may > have arbitrary dimensions and occupy arbitrary place on the table. > During painting, this assumption forces to call the JTable.getCellRect > for every cell. As JTable.getCellRect contains the loop inside, this > finally slows painting significantly. > > This can be done much faster supposing that all cells have the same > height and that all cells belonging to the same column have the same > width. Then the location of the adjacent cell is obvious and there is no > need to obtain it via JTable.getCellRect.
Wow, that is really a nice optimization. Thanks! /Roman
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil