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.
Type: Posts; User: KevinWorkman
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.
Also, the SwingWorker API lists a cancel() method that you might want to look into. I'm not very familiar with SwingWorkers though.
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.