I just have a data array (2-dim. array of Strings defined in my table data model that overwrites getValueAt and other standard methods.
So, I reset that array, and reset table with the that updated data model. // change values in arrayData array ..... model.setData(arrayData); model.fireTableDataChanged(); listTable.revalidate(); -----Original Message----- From: Greg Munt [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002 12:35 PM To: Reinstein, Lenny; [EMAIL PROTECTED] Subject: Re: Refreshing the view of JTable. How are you changing the data? ----- Original Message ----- From: "Reinstein, Lenny" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 12, 2002 3:36 PM Subject: Refreshing the view of JTable. > I use a simple model that implements AbstractTableModel. I have a > 2-dimensional String array that represents the data. When I change the data, > I want the table view to be updated right away. However, it only updates the > view of the current row when I switch to a different row. Calling > revalidate() and updateUI() on the table did not help, as well as calling > fireTableDataChanged() on the model. > > Any ideas? > > Thanks. > _______________________________________________ > Advanced-swing mailing list > [EMAIL PROTECTED] > http://eos.dk/mailman/listinfo/advanced-swing > _______________________________________________ Advanced-swing mailing list [EMAIL PROTECTED] http://eos.dk/mailman/listinfo/advanced-swing