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

📄 broker3tierclient.java

📁 some easy projects in java, can teach you basic project design method in java.
💻 JAVA
字号:
package trader.nw;
import trader.*;
import trader.gui.*;
public class Broker3TierClient{
  NwClient nwClient; 
  BrokerModel model;
  BrokerViewImpl view;
  BrokerController con;

  public static void main(String args[]) {
    String modelHost = "localhost";
    try {
      if (args.length > 0) {
        modelHost = args[0];
      }
      Broker3TierClient client = new Broker3TierClient();
      client.nwClient = new NwClient(modelHost, 6001); 
      client.model = new BrokerModelNwImpl(client.nwClient);
      client.view = new BrokerViewImpl(client.model);
      client.con = new BrokerControllerImpl(client.model, client.view);
   } catch (Exception e) {
     e.printStackTrace();
   }
  }
}

⌨️ 快捷键说明

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