JFrame getting hanged for a while

Hi,

I have a swing application. It has got two text fields for getting the input files. And on the click of a button, an actionEvent has will be triggered which will validate these files.

My question is if these files are huge, I mean if it takes around 5 minutes for validating these files, for that particular period of time, the Frame goes into an hanged state.

Is there any workaround for this.

[427 byte] By [RAMGa] at [2007-10-3 3:00:30]
# 1
Yes, start a new thread to do the validation.
PhHeina at 2007-7-14 20:50:05 > top of Java-index,Desktop,Core GUI APIs...
# 2
[url http://java.sun.com/docs/books/tutorial/uiswing/misc/threads.html]How to Use Threads[/url]
camickra at 2007-7-14 20:50:05 > top of Java-index,Desktop,Core GUI APIs...