Announcement

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

    IButton changing color

    All

    I have the following button, How do I change its body color to green.

    IButton buyButton = new IButton();
    buyButton.setTitle("BUY");
    buyButton.setBackgroundColor("green");
    buyButton.setEdgeBackgroundColor("green");
    buyButton.setEdgeCenterBackgroundColor("green");
    buyButton.setBorder("1px solid green");

    At the moment it has taken the default skins color. SmartGWT 2.2

    #2
    You have to change the skin for the button. There is a skinning guide http://www.smartclient.com/docs/7.0rc2/a/b/c/go.html#group..skinning which is the best place to start to understand what SmartGwt (SmartClient underneath) is doing. You can then create your own skin for the button.

    Comment

    Working...
    X