Click to See Complete Forum and Search --> : JTable and different TableModels


Ed P
March 14th, 1999, 12:12 PM
I have a JTable and 2 different TableModels that are views on different sets

of data.


Is there a simple way for the JTable to switch between the two models (and

for the table to update/redraw itself when it changes)?


I have tried using the setModel() method of JTable but that always gives

me null pointer exceptions.