Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

about multiHeader table  RSS feed

 
qu shihong
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends ,
how can I set the table header like this:
-------------------
        name
-------------------
firstName|lastName
-------------------
Thanks.
[ March 02, 2003: Message edited by: qu shihong ]
[ March 02, 2003: Message edited by: qu shihong ]
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at the groupable header example.
 
qu shihong
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In GroupableTableHeaderUI.java:
--------------------------------
private int getHeaderHeight() {
int height = 0;
TableColumnModel columnModel = header.getColumnModel();
for(int column = 0; column < columnModel.getColumnCount(); column++) {
TableColumn aColumn = columnModel.getColumn(column);
TableCellRenderer renderer = aColumn.getHeaderRenderer();
--------------------------------
renderer is null.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!