2 Replies Latest reply on Sep 18, 2012 10:48 AM by walterln

    Jtable - Set visible columns


      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 ?



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