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

📄 drawclient.java

📁 面向对象的设计思想
💻 JAVA
字号:
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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -