JTable: dynamic row header - table alignment issues while scrolling
843804Jul 8 2005 — edited Aug 12 2005Hi,
I've got a 2 JTables, one is a rowHeader and the other the mainTable. A JScrollPane contains them. The rowHeader table is set as the row header for the JScrollPane. Standard stuff...
My problem is that when I scroll vertically via the scrollbar, I notice that the rowHeader table becomes slightly out of alignment with the mainTable while I scroll. When I stop or slow down, the rowHeader table seems to "catch up" and become properly aligned with the mainTable. This happens for both small and large tables, and is directly affected by scroll speed. For large tables the effect is pronounced because small displacements of the scrollbar knob result in larger table movements.
Can anyone recommend a strategy for dealing with this problem?
thanks,
jpl