How can I get the text in a JTable?

前端 未结 3 499
广开言路
广开言路 2021-01-25 21:38

For example I have a Table that I want to get text that\'s in the first column and store it in an ArrayList.

3条回答
  •  Happy的楠姐
    2021-01-25 22:09

    You need to go through the JTable's TableModel, accessible through the getModel() method. That has all the information you need.

提交回复
热议问题