Я пробовал TabPanel и виджет PopUp, но оба они показаны в браузере без стиля ... другие примеры, которые я загрузил из Интернета, в порядке. Что происходит?Виджеты GWT показаны без стиля
Это пример того, что я вижу ... Что мне не хватает? Благодаря
Вот мой код:
.....
Button search = Button.wrap(DOM.getElementById("search"));
search.setVisible(true);
search.addClickHandler(new ClickHandler(){
public void onClick(ClickEvent event) {
new MyPopup().show();
}
});
}
private static class MyPopup extends PopupPanel {
public MyPopup() {
// PopupPanel's constructor takes 'auto-hide' as its boolean parameter.
// If this is set, the panel closes itself automatically when the user
// clicks outside of it.
super(true);
// PopupPanel is a SimplePanel, so you have to set it's widget property to
// whatever you want its contents to be.
setWidget(new Label("Click outside of this popup to close it"));
}
}
спасибо! Он решает мою проблему! –