i write below code in swings
create one instance for class
call one method for created instance class

method1() for create one JDialog and show(which tells process is going on)
class for copy files from one folder to another folder
method2() for create another JDialog and show(which tells process is completed)
what i need is while process i.e. coping file from one to another folder first dialog box appears and shows "process is going on" this text put in JTextField.
after completion of process second dialog box tells process is completed.

what happend here while processing dialog box appears and it does not show its textfiled .
after completion second dialog box works perfectly.

pl tell me how can i handle this situation.