Can not change button background color

Hi Folk!

I want to change the background color of a specific button here is the code:
Button btn = new Button(“Production”);
btn.setBackgroundColor(“red”);

But the button still the same, i noticed that the background changed when i refresh the page for a few milliseconds to red then it get back to default button color.

Any help will be appreciated.

Is there any one that can help?

Use Firebug and check if you don’t have any external CSS.

Thanks jmichelgarcia for ur response, i already checked but there is no external CSSany other suggestions?

According to the doc a Button is :
The Button widget class implements interactive, style-based button widgets.

So i think you need to create your own style, or modify the existing ones

aha i got it thanks alot