Results 1 to 3 of 3

Thread: Dispose a JDialog after a certain time

  1. #1

    Thread Starter
    PowerPoster eranga262154's Avatar
    Join Date
    Jun 2006
    Posts
    2,201

    Wink 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.
    “victory breeds hatred, the defeated live in pain; happily the peaceful live giving up victory and defeat” - Gautama Buddha

  2. #2

    Thread Starter
    PowerPoster eranga262154's Avatar
    Join Date
    Jun 2006
    Posts
    2,201

    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.
    “victory breeds hatred, the defeated live in pain; happily the peaceful live giving up victory and defeat” - Gautama Buddha

  3. #3

    Thread Starter
    PowerPoster eranga262154's Avatar
    Join Date
    Jun 2006
    Posts
    2,201

    Re: Dispose a JDialog after a certain time

    Do you guys think it's a safer way?
    “victory breeds hatred, the defeated live in pain; happily the peaceful live giving up victory and defeat” - Gautama Buddha

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width