CheckBoxTableViewer and BackgroundColor [message #10757] |
Thu, 04 June 2009 07:34 |
Eclipse User |
|
|
|
Originally posted by: smathys.hotmilk.ch
Hi all,
When I change the backgroundcolor of the table from a
CheckBoxTableViewer, the first colum doesn't change the color.
Steps to reporduce:
- Create a new PlugIn Project
- Check "This Plug-in will make contributions to the UI" and "Would you
like to create a rich client application" -> yes
- choose RCP application with a view
- In class View.java, replace the code from method createPartControl()
with
viewer = new TableViewer(parent, SWT.MULTI | SWT.H_SCROLL
| SWT.V_SCROLL | SWT.CHECK);
viewer.setContentProvider(new ViewContentProvider());
viewer.getTable().setBackground(
new Color(Display.getCurrent(), 200, 200, 200));
viewer.setLabelProvider(new ViewLabelProvider());
viewer.setInput(getViewSite());
Is there a thing I forgot to do?
Regards
stephan
|
|
|
Powered by
FUDForum. Page generated in 0.02191 seconds