Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 357443 - Cannot set background color of a List widget
Summary: Cannot set background color of a List widget
Status: RESOLVED FIXED
Alias: None
Product: Riena
Classification: RT
Component: Look And Feel (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-13 02:49 EDT by Sabine Achilles CLA
Modified: 2012-05-25 07:28 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sabine Achilles CLA 2011-09-13 02:49:30 EDT
It is not possible to change the background color of a List widget. It doesn't matter if the LnFUpdater is activated or not.
To reproduce modify ListSubModuleView in the Example Client and try setting: listPersons.setBackground(LnfManager.getLnf().getColor("red")); Nothing changes. Trying the same on e.g. a Table worked without a problem.
At the moment the only working way to change the background color of a List is to set it globally in the LnF.
Comment 1 Nobody - feel free to take it CLA 2012-05-25 07:28:04 EDT
The background is still a property of the _Control_.
This means, that the same control will always keep its background, event when used with another ridget.

Here is a little snippet:

http://git.eclipse.org/c/riena/org.eclipse.riena.git/tree/org.eclipse.riena.sample.snippets/src/org/eclipse/riena/sample/snippets/frombugs/Snippet357443.java
Comment 2 Nobody - feel free to take it CLA 2012-05-25 07:28:51 EDT
The fix is pushed