Not able to see row of the table

Hi,

I have created table model and attached to the table. Based on selection of some other table I am changing the content of the table.

It is working fine except in one case where table is not at all showing any row, even the default row that needs to be shown no matter if it contains any other data or not.

I was surprised while I debugging, i was able to see the content of the list that holds data for the table and which is used in getValueAt() method to display the content of the data.

Any suggestion, on why I am not able to see content of the table?

Regards,

Vikas Dharmapurikar.

[632 byte] By [Vikas_Dharmapurikara] at [2007-10-2 5:49:58]
# 1
Are you sending the correct events from your table model when the data changes?If you don't send an event, then the jtable will still think it has the old data, which could lead to null pointer exceptions or arrayindexoutofbounds exceptions.
msullya at 2007-7-16 1:59:23 > top of Java-index,Desktop,Core GUI APIs...
# 2

Hi,

After gettting required data I am setting list to the model which contains data for the table and then I fire fireTableDataChanged() method of the model, which works fine in some other casee, but not in one specific case and for which I am not able to trace any reseaon for it. I also tried with forcing table repaiting stuffs like table.repaint(), table.invalidate(), but it is not working.

Please do let me know if you want to know any further details.

Vikas_Dharmapurikara at 2007-7-16 1:59:23 > top of Java-index,Desktop,Core GUI APIs...