Can I change foreground color of disabled swt control
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 bu开发者_运维技巧t i couldn't set the foreground color. Is it posible? If so, how?
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.
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 :-)
精彩评论