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
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);