as far as i know the setStyle() method is used to write directly on
style attribute, you should use setCls()

eg.

btn.setStyle("width: 100px;")

btn.setCls("labelStyle");

regards,

On 4/2/09, Neo <[email protected]> wrote:
>
> Hi,
> Today was my first day with GWT Ext and quite obviously I ran into a
> problem.
> In my HelloWorld program I want to add CSS styling to a component. My
> CSS file is named as "HelloWorld.css". I have added some style
> information for a label:
>
> .labelStyle
> {
>       font-size:30;
>       font-weight:normal;
> }
>
> In my code I am doing this :
> Label label = new Label("My Panel");
> label.setStyle("labelStyle");
>
> In my HelloWorld.gwt.xml file I am doing this :
> <!-- Specify the application specific style sheet.              -->
> <stylesheet src="js/ext/resources/css/ext-all.css" />
> <stylesheet src="HelloWorld.css" />
>
> However, the style information is not getting reflected in my
> application. I am not really sure if I am doing this correct. Please
> help me solve this issue.
>
> >
>


-- 
_____________________
Ing. Gabriel Gutiérrez
Celular: +52 1 81 1071 7213
Oficina: +52    81 8153 2415
Monterrey, México

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"GWT-Ext Developer Forum" 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/gwt-ext?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to