I created a PopupPanel
and have shown it. I want to hide it after one minute has passed. During that one minute, the process should not be stopped or paused. Ho
GWT has its own implementation of Timer.
Here a really small example:
public void onModuleLoad() {
final PopupPanel popUp = new PopupPanel();
Label text = new Label("gone in a sec");
popUp.setWidget(text);
Timer timer = new Timer() {
@Override
public void run() {
popUp.hide();
}
};
popUp.center();
timer.schedule(3000);
}