Forgive me if something is slightly wrong as I'm not going to validate this through Eclipse, but I think this is what you want:
Button button = new Button("Green Button"); button.getElement().getStyle().setColor("green"); On Sep 28, 7:31 am, ahdipost <yaserizt...@gmail.com> wrote: > Hi everyone, > > I wonder, how to change only one widgets style with javascript. Not > loading from a *.css file, just think about, for gwt-button, a css > formta is stored in a > > String cssFormat=".gwt-button{color:Green;}"; attribute. Is it > possible to set this style to displayed button's style?? > > Thanks... -- 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-tool...@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.