-   Programming (
-   -   Horizontal scrolling in a jTable (

vitorsgoncalves 03-10-2011 10:43 AM

Horizontal scrolling in a jTable
I am creating an application in java that uses a jTable for showing some data.
There are multiple columns in that table, an I do not want to show them all at once, so the user slides the horizontal scroll for viewing the remaining columns.

How can I do that?

Snark1994 03-10-2011 11:15 AM

It should be enough to call



Certainly, this works with the SimpleTableDemo from Oracle (if it doesn't work with your code, perhaps you can post it so we can see why not)
Hope this helps :)

vitorsgoncalves 03-10-2011 11:28 AM

It was so simple... I have searched in the web without success.


Snark1994 03-10-2011 04:39 PM

No worries :D

All times are GMT -5. The time now is 10:38 AM.