Search:

Type: Posts; User: KevinWorkman

Search: Search took 0.07 seconds.

  1. Re: execute a method over a maximum period of time

    That would be the perfect solution for a method that he has access to, but it sounds like he's using a "black box" method (or at least one that he can't change) in the JavaMail API.
  2. Re: execute a method over a maximum period of time

    Also, the SwingWorker API lists a cancel() method that you might want to look into. I'm not very familiar with SwingWorkers though.
  3. Re: execute a method over a maximum period of time

    Yep, sounds like you should use a Thread (or a SwingWorker), and if the time has expired (or the user cancels or something) before the method completes, just ignore the results.
Results 1 to 3 of 3