I have a Table widget in a view, and I'm adding columns. But I need to group headers. I want to have one title, for several columns.
I search a solution on web, but uses method that SWT seems to not have.
TableColumnModel cm = table.getColumnModel();
This is my table declaration:
table = new Table(content, SWT.BORDER | SWT.FULL_SELECTION | SWT.V_SCROLL | SWT.FILL);
Any suggestions?
The method you're asking about is for Swing JTable
, not SWT's Table
or JFace's TableViewer
. You might find an example for doing what you want in the SWT Snippets page .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.