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.
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.
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.