This discussion is archived
2 Replies Latest reply: Sep 18, 2012 3:48 AM by 800268 RSS

Jtable - Set visible columns

689054 Newbie
Currently Being Moderated
Hi,

I'm trying to build an applet to edit mysql tables. I used a Jtable inside a JscrollPane but I would like to display only 3 or 4 columns at a time (I can have up to 40 !) and then let the user scrolls to the others with the horizontal scrollbar.

My problem is that all the columns are always displayed (width reduced to fit) in the scrollpane. How can I reduce the number of visible columns ?

Thanks,

Olivier

Edited by: user1721669 on 16 sept. 2012 11:06

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points