I was wondering if there's a simple way to make a Dialog visible for a very short period of time and then have it turn invisible. Or even if there's a possibility to do this instantaneously.
Cheers, Kesh
In a method do this:
Thread t = new Thread() {
public void run() {
try {
Thread.sleep(5000);
}
catch(Exception ex) {
}
dialog.setVisible(false);
}
t.start();
dialog.setVisible(true);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.