I want to make SWT TableViewer
row with alternate grey and white color, some links showed a way to do by using setLinesvisible
but that option didn't work.
Other way I can find is like using IColorProvider
, wanted to know any better approach to do this?
Asked
Active
Viewed 112 times
0
![](../../users/profiles/1449199.webp)
Baz
- 34,567
- 11
- 66
- 88
![](../../users/profiles/552521.webp)
Abhishek Choudhary
- 7,569
- 18
- 63
- 118
-
1`Table` or `TableViewer`? – Baz Jun 23 '14 at 14:53
-
TableViewer will be the right word – Abhishek Choudhary Jun 23 '14 at 15:00
-
`IColorProvider` is probably the easiest way to do it. You can also use the `ColumnLabelProvider` to do it, as shown [here](http://git.eclipse.org/c/platform/eclipse.platform.ui.git/tree/examples/org.eclipse.jface.snippets/Eclipse%20JFace%20Snippets/org/eclipse/jface/snippets/viewers/Snippet041TableViewerAlternatingColors.java). – Baz Jun 23 '14 at 15:04