drawclient.java
来自「面向对象的设计思想」· Java 代码 · 共 27 行
JAVA
27 行
import javax.swing.JFrame;
//调用画图工具工作的的类
public class DrawClient
{
public static DrawFrame frame;
NwClient nwClient;
DrawModel model;
public static void main(String args[]) {
String modelHost = "localhost";
try {
if (args.length > 0) {
modelHost = args[0];
}
DrawClient client = new DrawClient();
client.nwClient = new NwClient(modelHost, 6001);
client.model = new DrawNwModel(client.nwClient);
client.frame = new DrawFrame(client.model);
} catch (Exception e) {
e.printStackTrace();
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?