Loading Java JTable: Why does it not work?

后端 未结 3 1000
故里飘歌
故里飘歌 2021-01-19 18:11

I have created a simple GUI which includes a JTable. This table may be saved & loaded via the appropriate Object Stream.

At this point the Save function is worki

3条回答
  •  礼貌的吻别
    2021-01-19 19:00

    • JTable and its XxxTableModel is based on Vector or Object[]

    • have to load data from FileIO to the XxxTableModel in structure as is Vector or Object[]

    • all updates to the XxxTableModel must be done on EventDispatchThread, otherwise any changes are visible on the screen

提交回复
热议问题