package com.java2s.gwt.client;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.ClickListener;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.Widget;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Grid;
public class GWTClient implements EntryPoint{
public void onModuleLoad() {
HTML html = new HTML("caption");
html.setStyleName("layouts-Label");
RootPanel.get().add(html);
}
}
///////
.layouts-Label {
background-color: #C3D9FF;
font-weight: bold;
margin-top: 1em;
padding: 2px 0px 2px 0px;
width: 100%;
}
///////////
<module>
<inherits name="com.google.gwt.user.User"/>
<entry-point class="com.java2s.gwt.client.GWTClient"/>
<stylesheet src='your.css'/>
</module>
|