Reputation: 163
I need to set the foreground color of disabled controls to black instead of that grey. I see that the background color can be set but i couldn't set the foreground color. Is it posible? If so, how?
Upvotes: 0
Views: 875
Reputation: 12718
If it is very important, you might be able to paint the text yourself by hooking into the paint event... I haven't tried though :-)
Upvotes: 1
Reputation: 4843
Depends on which control you want to change back/foreground. In SWT Javadoc the setBackgroundColor method you can find this note
Note: This operation is a hint and may be overridden by the platform. For example, on Windows the background of a Button cannot be changed.
Upvotes: 2