- Code: Select all
NestedTableHeader header = (NestedTableHeader) table.getTableHeader();
header.addColumnGroup(all);
doesn't work because a table doesn't have a default table header. Therefore, it returns null. I was trying this example, and I had to create my own header and add it to the table.
- Code: Select all
NestedTableHeader header = new NestedTableHeader(table);
header.addColumnGroup(all);
Maybe I did something wrong when creating the JIDE Table, but I highly doubt it. This might be trivial for many, but for many inexperienced developers, this might be a difficult thing to overcome. I also think that examples should be more complete. In this case, the snippet should include the creation of the table itself.