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 with locked right side columns

800382Jan 16 2008 — edited Jan 23 2008
I've searched around, but can't find anything specific for this issue. I need a JTable with locked columns on the left and right side.

I've found several examples of using JScrollPane row headers with a second table to lock the left side.

I can think of a way to do the right side with a second scrollpane, with synchronized scrolling between the 2 panes. However, it would be nice if there were a more elegant solution.

I was also considering subclassing JTable, or customizing the L&F classes (I have a custom L&F for the app already), but I thought I'd ask if anyone's seen any existing class that would solve this problem.
thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 20 2008
Added on Jan 16 2008
18 comments
379 views