Show and hide columns.

I have a rather large JTable with a lot of columns that are updated once in a while.Is there an easy way to show and hide columns, so that I don't have to keep track on which a shown and hide when I use setValueAt()...?
[234 byte] By [EikHorsa] at [2007-11-26 12:21:23]
# 1
JTable does the conversion between the column indexes of the view and the model.You should be able to add remove columns using addColumn and removeColumn methods. and in the TableColumn class you can specify the coulmn in the model that the TableColumn refers to.
LRMKa at 2007-7-7 15:12:54 > top of Java-index,Archived Forums,Socket Programming...