Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » CheckBoxTableViewer and BackgroundColor
CheckBoxTableViewer and BackgroundColor [message #10757] Thu, 04 June 2009 11:34
Eclipse UserFriend
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
Previous Topic:On the fly highlighting in text editors
Next Topic:Selection of Checkbox Issue after sorting in Virtual Table
Goto Forum:
  


Current Time: Fri Apr 26 02:59:30 GMT 2024

Powered by FUDForum. Page generated in 0.02742 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top