开发者

How to retrieve header values from JTable

开发者 https://www.devze.com 2023-01-19 07:07 出处:网络
How can I retrieve the header values from a开发者_Go百科 JTable? Thanks.With the getColumnName(int) method

How can I retrieve the header values from a开发者_Go百科 JTable? Thanks.


With the getColumnName(int) method

jTable.getColumnName(columnIndex)


It is not obvious that the Column name and the header name are the same. To get the header name: jTable1.getColumnModel().getColumn(i).getHeaderValue()

0

精彩评论

暂无评论...
验证码 换一张
取 消