JTable data not stable when vertically scrolled
I have developed a Java Swing application wh开发者_如何学Goich consists of JTable. The JTable displays data of text file. The textfile is comma separated. After displaying i am summing up the totals and displaying them in another JTable which can be vertically scrolled. But when the rows in the table are more, then the JTable is not stable when vertically scrolled. The data gets repeated or the file gets corrupted.
there is maybe (no code, no hash) some issues with
1) Concurency in Swing,
2) why JTable
loads data on Runtime or there un-know concurency between JTables
and one TableModel
3) add your data to the DefaultTableModel
4) better would be implements DefaultTableModel
for each of JTable
separately
more tutorial and examples
精彩评论