Dispose a JDialog after a certain time
Hi all,
I have a JDialog with a button. Button implement to dispose the dialog by a click event. Say user not click the button within 1 minute to dispose, in such case I want to automatically dispose it. How can I do that.
I know this is going to be work about thread. But I'm not much familiar with them.
Re: Dispose a JDialog after a certain time
Ok, I've solved the question my self. Put into to sleep for a specified time and dispose. That sleep not freeze any other controls as well.
Re: Dispose a JDialog after a certain time
Do you guys think it's a safer way?