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()
精彩评论