Intermittent JTable refresh problems
Posted on 2001-07-20
I have an applet that displays streaming data vis JMS (i.e. the data in the TableModel is constantly being updated). The applet has the functionality of changing to a different set of data and updates to it are streamed in. The problem I see occurring sometimes is that data in the previous TableModel is being displayed in the new TableModel. I recreate my TableModel (I have a subclass of AbstractTableModel) everytime. I have made sure that I am removing all TableModelListeners and ActionListener.
When I set the JTable's model to the new TableModel, I always call fireTableDataChanged(). I've even tried to do an applet.repaint() and an applet.revalidate(), but the intermittent problem is still there.
I am using JDK 1.3.002 on a Windows platform. Is there anyway that I can ensure that the old TableModel is completely removed from the JTable?