Can I make SWT table headers span to make a super header

214 Views Asked by At

I would like to create a table, where I can have a 'super' header spanning over more columns in order to group the columns. In the example below 'Balance' is a header for 'Income' and 'Spending'.

To solve this issue, headers must be able to span both horizontally and vertically as 'Year' and 'Comments' are spanning 2 'rows' in the header. Is this possible with SWT?

Table header where Balance is heading Income and Spending

1

There are 1 best solutions below

1
Peter DK On

I will answer my own question.

A convenient way to do this is to use the NatTable framework, which can form up to 3 levels of headers. Start by following this link: Nebula NatTable