have you followed this way??

http://code.google.com/webtoolkit/doc/latest/DevGuideUiBinder.html#Programmatic_access

--
Sarjith



On Wed, Oct 12, 2011 at 1:01 PM, wahaha <il...@yahoo.com.cn> wrote:

> i write a style class in ui.xml:
>
> .test{
> color:red;
> }
>
>
> then,i set a button's className as "test":
>
> btn.setStyleName("test",true);
>
> now,in the browser the button''s text is not red.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

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

Reply via email to