Adding rows to a JTable

后端 未结 3 1498
悲&欢浪女
悲&欢浪女 2020-12-03 01:46

We have a simple project where we read data from a socket and we want to populate a table with the coming data, but we can\'t find a way to add rows to a yet created J

3条回答
  •  甜味超标
    2020-12-03 02:33

    Once you start dynamically adding and removing elements from a JTable, you really need to start using a TableModel.

    See the Java Tutorial for more details.

提交回复
热议问题