• Post Reply Bookmark Topic Watch Topic
  • New Topic

Swing Application freezes with Java Mail

 
Rohan Baweja
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I shouldnt be asking this question here but since its also got to do Swing, I am posting it here too.
I have developed a JavaMail Client program. On retrieving new mail the GUI interface freezes. Is there a way to prevent this?
If the possible solution is using Threads, then please guide me.
 
russ wicks
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by rohan baweja:
Hi
I shouldnt be asking this question here but since its also got to do Swing, I am posting it here too.
I have developed a JavaMail Client program. On retrieving new mail the GUI interface freezes. Is there a way to prevent this?
If the possible solution is using Threads, then please guide me.

The answer is threads.
Just make sure that the receive method of your program is executed on a seperate thread. I had a similar problem but threading sorted it out.
 
Rohan Baweja
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for the advice i have it working
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!