|Re: button text color change [message #505727 is a reply to message #505343]
||Mon, 04 January 2010 11:54
| Grant Gayed
Registered: July 2009
Control.setForeground() is the right way to do what you want, so if it does|
not work for you then it's not natively supported. Most Controls allow you
to change their foregrounds and backgrounds, but there are a few
platform-specific ones that don't.
"B" <email@example.com> wrote in message
> This is a very basic question. I want to change the color of the text in a
SWT button in the simplest way.
> I have seen there might be a eclipse bug on win32-systems where u can't
change colors of a button at all. However, changing the background of my
radio button to black is no problem. But I want to change to color of the
text. Setforeground doesn't work. Is it suppose to, or is there another way
one should do it?
> Best regards
Powered by FUDForum
. Page generated in 0.10369 seconds