Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Help "How to setup background color for Button"

Monday, November 21, 2005, 1:51:05 PM, Xie, Wei wrote:

> Hi,
> I want to change the background color for a button, and I call the
> setBackground() method to set the color, but it when I run the code, the
> background color doesn't change, anyone know why? The code is following:


>         Button button = new Button (shell, SWT.PUSH);   
>         button.setBackground(display.getSystemColor(SWT.COLOR_GREEN));

> BTW: 
> OS: on window XP
> JDK: jdk 1.4.2

> Thanks

Not supported on Windows because the native widget doesn't
support it.

Related:
http://dev.eclipse.org/newslists/news.eclipse.platform.swt/msg24159.html
https://bugs.eclipse.org/bugs/show_bug.cgi?id=36055

For questions of this type, please see the newsgroup (link
below) instead of the SWT developer list.

-- 
Regards,
David                            
mailto:dlwhiteman@xxxxxxxxxxxxxxx
news://news.eclipse.org/eclipse.platform.swt
http://www.eclipse.org/newsportal/thread.php?group=eclipse.platform.swt




Back to the top