Hi guys,

I'm also having the same problem. setIconCls() works on menu items,
though.
The style names I used on the invocations to setIconCls on both the
ToolbarButton and the Item (menu)
are contained in the same css file.
I hope you guys can shed light on this one.

Thanks in advance.

On Feb 17, 4:32 pm, ytbryan <[email protected]> wrote:
> i have this toolbarbutton and its method setIconCls();
>
>    1.     ToolbarButton button_daily_View = new ToolbarButton("Daily
> View");
>    2.       button_daily_View.setIconCls("database-add-icon");
>
> ToolbarButton button_daily_View = new ToolbarButton("Daily View");
> button_daily_View.setIconCls("database-add-icon");
>
> at the css, i have this:
>
>    1. .database-add-icon{
>    2.         background-image:url(images/database_add.png);
>    3.
>    4. }
>
> .database-add-icon{ background-image:url(images/database_add.png); }
>
> but the icon don't appear. I am not sure what went wrong. maybe it's
> not the gwt fault but i cannot pin-point where is the error? can
> someone advise me ? I attached a picture ( circled the point where
> icon supposed to be) THANKS alot!!
>
> picture 
> herehttp://www.quickfilepost.com/download.do?get=ed4f75339f725d64633f905d

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to