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. How can I achieve this behavior?
相关问题
- How to run GWT in production mode
- WPF ComboBox with custom dropdown width
- Timer vs. repetitive background worker
- Google Guava 15.0 Error with GWT 2.5.1?
- setInterval doesn't slow down on inactive tab
相关文章
- Spring NamespaceHandler issue when launching Maven
- Annotation for GWT compiler to ignore method
- getComputedStyle like javascript function for IE8
- Is the HPET directly accessible in Windows?
- Uploading to Blobstore gives a Java heap OutOfMemo
- GWT ,Vaadin,SmartGwt,ExtGwt ?---from Swing [closed
- Blinking Button for Simon Says
- GWT JDBC LDAP connection fails
You could use
Thread.sleep(60000);
But be careful you have to chose the correct thread to pause. And exception handling also has to be added.
Try to use: java.util.Timer
And you can do something like this:
Exmaple: Use java.util.Timer to schedule a task to execute once 5 seconds have passed
GWT has its own implementation of
Timer
.Here a really small example: