Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    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.

    #2
    Is there any one that can help?

    Comment


      #3
      Use Firebug and check if you don't have any external CSS.

      Comment


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

        Comment


          #5
          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

          Comment


            #6
            aha i got it thanks alot

            Comment

            Working...
            X