closediag.java
上传用户:tie2000000
上传日期:2022-07-03
资源大小:4k
文件大小:1k
- package sendmsg;
- import javax.swing.JDialog;
- import javax.swing.JFrame;
- import javax.swing.JTextArea;
- public class closediag extends Thread{
- Thread t=null;
- JDialog clueDiag=null;
- JTextArea testArea=null;
- String info=null;
- dosend ds=null;
- closediag(dosend d,JTextArea p,JDialog j,Thread t){
- clueDiag=j;
- testArea=p;
- this.t=t;
- ds=d;
- System.out.print(t);
- }
- public synchronized void run()
- {
- try
- {
- t.join();//等待事务处理线程结束
- System.out.println("die");
- }
- catch(InterruptedException e)
- {
- System.out.println("Exception:" + e);
- }
- info=ds.getinfo();
- testArea.setText(t+"结束"+info);
- System.out.println("close");
- clueDiag.dispose();//关闭提示框
- }
- }