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

📄 connectutil.java

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

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

import testappforjavacup.testGUI;

/**
 *
 * @author promenade
 */
public class ConnectUtil{
    
    String ip;
    testGUI gui;
    
    /**
     * Creates a new instance of ConnectUtil
     */
    public ConnectUtil(String ip, testGUI gui) {
        this.ip = ip;
        this.gui = gui;
    }
    
    public Connect toConnect(){
        Connect connect = new Connect(this.ip);
        connect.setView( this.gui );
        RecievingThread rt = new RecievingThread( connect );
        SendingThread st = new SendingThread( connect ); 
        return connect;
    }
    
}

⌨️ 快捷键说明

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