⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 recievingthread.java

📁 java开发的netbeans插件中的application原型
💻 JAVA
字号:
/*
 * RecievingThread.java
 *
 * Created on 2006年12月12日, 下午9:29
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package cn.edu.tsinghua.thss.talkie.connect;

/**
 *
 * @author promenade
 */
public class RecievingThread implements Runnable{
    
    Connect connect;
    
    /** Creates a new instance of RecievingThread */
    public RecievingThread(Connect connect) {
        this.connect = connect;
        (new Thread(this,"receiving thread")).start();
    }

    public void run() {
        this.connect.toListen();
        
        while( !Thread.currentThread().interrupted() ){
            this.connect.receiveObject();
        }
        
    }
    
    
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -