Making ArrayList to JTable

后端 未结 2 1048
伪装坚强ぢ
伪装坚强ぢ 2021-01-06 08:15

I have an

ArrayList>

Object, I need to display the content of this array in a JTable.

The Map - Ke

2条回答
  •  爱一瞬间的悲伤
    2021-01-06 08:58

    ArrayList>

    This sounds like the wrong model for the job, there is not really a sensible way of turning this into a single table. Perhaps you mean

    Map>
    

    This would make a lot more sense. Now one single key (the column name) is mapped to multiple values (the column values).

提交回复
热议问题