connectutil.java
来自「java开发的netbeans插件中的application原型」· Java 代码 · 共 40 行
JAVA
40 行
/*
* 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 + =
减小字号Ctrl + -
显示快捷键?