Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JTable: dynamic row header - table alignment issues while scrolling

843804Jul 8 2005 — edited Aug 12 2005
Hi,

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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 9 2005
Added on Jul 8 2005
5 comments
331 views