File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT / JFace and the fly likes Swing Application freezes with Java Mail Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT / JFace
Reply Bookmark "Swing Application freezes with Java Mail " Watch "Swing Application freezes with Java Mail " New topic
Author

Swing Application freezes with Java Mail

Rohan Baweja
Ranch Hand

Joined: Aug 19, 2001
Posts: 31
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

Joined: Sep 07, 2001
Posts: 3
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

Joined: Aug 19, 2001
Posts: 31
thanks for the advice i have it working
 
 
subject: Swing Application freezes with Java Mail
 
Threads others viewed
windows freezes on dragNdrop from desktop
WA #1.....word association
Java Mail API freezes Swing App
need general help debugging unexplained freezes
My applications whole screen becomes blank.
Two Laptop Bag

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture