Click to See Complete Forum and Search --> : Hide columns in JTable


Chedo
February 6th, 2001, 05:23 AM
How do I hide columns in JTable? I thought that column objects would have a method like setVisible, but they dont...
Anyone?

Every brother has a star... every sister has a star...

dlorde
February 6th, 2001, 06:40 AM
Try JTable.removeColumn(). This will remove the column from display without affecting the data in the data model.

Dave

To email me remove '_spamjam' from my email address

Chedo
February 6th, 2001, 07:08 AM
Thanks :) It works :)

Every brother has a star... every sister has a star...