| [news.eclipse.platform.swt] Re: How to center a image in a SWT table column |
Hi,
I have implemented a SWT table with checkboxes in the 3 column. Since it is not possible to add a real checkbox to a table column other than to the 1.column, I'm using normal images that display the checked/unchecked checkbox. The default horizontal alignment of the images is left, but I would like to have them centered. How can I do this? Can this be done somewhere in the TableLabelProvider?
This JFace snippets page has an example that demonstrates how to do it: http://wiki.eclipse.org/index.php/JFaceSnippets#Snippet051TableCenteredImage
Hope this helps, Eric