Hello!
Here it is an example:
in your java class...
VerticalPanel verticalPanel = new VerticalPanel();
HTMLPanel w = new HTMLPanel("Greetings");
w.setStyleName("vp-htmlPanel");
verticalPanel.add(w);
in your css:
.vp-htmlPanel{
background-color:#FF0;
}
If you are using UiBinder:
<ui:style>
.vp-htmlPanel{
background-color:#CC2A98;
}
</ui:style>
<gwt:VerticalPanel>
<gwt:HTMLPanel
styleName="{style.vp-htmlPanel}">Greetings</
gwt:HTMLPanel>
</gwt:VerticalPanel>
Hope it helps.
--
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.