Have you tried the addStyleName(String) method? That may help you. http://google-web-toolkit.googlecode.com/svn/javadoc/1.4/com/google/gwt/user/client/ui/UIObject.html#addStyleName(java.lang.String)
--------------------------------------- Kamal Mettananda http://lkamal.blogspot.com On Wed, Aug 12, 2009 at 10:12 AM, lakshmi thyagarajan < tlakshmipr...@gmail.com> wrote: > Hi Kamal, > > I tried setting the styles that way. But it replaces all the styles > associated with the GWT Dialog box. I want to change only the 'Caption' > style and not the rest. > > thanks, > Lakshmi > > > On Tue, Aug 11, 2009 at 9:30 PM, Kamal Chandana Mettananda < > lka...@gmail.com> wrote: > >> Hi, >> >> You can set the your own style name as you needed. >> >> You just have to call setStyleName(String) method. >> >> http://lkamal.blogspot.com/2007/08/add-css-style-for-gwt-widgets.html >> >> HTH, >> >> Kamal Mettananda >> >> >> >> >> >> On Wed, Aug 12, 2009 at 9:53 AM, lakshmi thyagarajan < >> tlakshmipr...@gmail.com> wrote: >> >>> Hi, >>> >>> I want to replace either "gwt-DialogBox .Caption" with my own style or >>> modify the contents of gwt-DialogBox .Caption. I dont want to replace all >>> the other default styles associated with the GWT Dialog box. Is there a way >>> to do this? >>> >>> thanks, >>> Lakshmi >>> >>> >>> >>> >>> >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---