开发者

How to retrieve header values from JTable

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜