posted 18 years ago
Hi,
I can't seem to figure out how to refresh my serverstatusdialog with a message that says shutting down in 15 seconds and then sleeping 15 and doing a system.exit(-1).
Basically my SSD has a shutdown action called when shutdown is pressed. This action create a confirm dialog with the ok of the confirm i unbind the rmi server, set a flag to prevent more requests, and then set the text value of the textfield on the SSD to "shutting down delaying 15 seconds" and finally Thread.sleep(15000).
What happens is the SSD freezes and does not update with the text, 15 seconds passes and the application quits.
Any suggestions?
Thanks.