Refreshing the view of JTable.

2002-03-12 Thread Reinstein, Lenny
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

Re: Refreshing the view of JTable.

2002-03-12 Thread Greg Munt
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

RE: Refreshing the view of JTable.

2002-03-12 Thread Reinstein, Lenny
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);

RE: Refreshing the view of JTable.

2002-03-12 Thread Reinstein, Lenny
Tom, It works now, except for the row currently selected. This one still remains unchanged, unless I switch to a different row and then back. Any ideas? Many thanks. -Original Message- From: Tom Copeland [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 12, 2002 11:13 AM To: [EMAIL