| [news.eclipse.platform.swt] Re: TableViewer and SWT.CHECK |
Hi Grant,
Using SWT 3.3.2 (x86, gtk) and the following snippet:
http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet38.java
I changed the line:
TableColumn column = new TableColumn (table, SWT.NONE);
to:
TableColumn column = new TableColumn (table, SWT.CENTER);
I am attaching two screenshots showing that the first column is centered and
that decreasing the size of the first column causes the check box to appear
on top of the text.
-David
Attachment:
centered.png
Description: PNG image
Attachment:
overlapping.png
Description: PNG image