public void onModuleLoad() {
final Label label = new Label("Hello, GWT!!!");
final Button button = new Button("Click me!");
HorizontalPanel hp = new HorizontalPanel();
button.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
label.setVisible(!label.isVisible());
}
});
hp.add(button);
hp.add(label);
RootPanel.get("cabecalho").add(hp);
}
<html>
<head>
<meta name='gwt:module' content='app.gwt.sugaragens.Main=app.gwt.sugaragens.Main'>
<title>Sistema Unificado de Garagens</title>
<link href="./estilos/estilos.css" rel="stylesheet" type="text/css" />
</head>
<body>
<script type="text/javascript" src="app.gwt.sugaragens.Main/app.gwt.sugaragens.Main.nocache.js"></script>
<div id="cabecalho"></div>
</body>
</html>
alguem tem alguma idéia, se esta faltando fazer algo ? se tem algo errado ?
desde já grato t+