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

📄 clientimpl.java

📁 Java the UML Way 书中所有源码
💻 JAVA
字号:
/*
 * ClientImpl.java   E.L. 2001-08-25
 *
 */

import java.rmi.*;
import java.rmi.server.*;
import javax.swing.*;

public class ClientImpl extends UnicastRemoteObject implements Client {
  private String name;
  private StatusWindow theStatusWindow  = new StatusWindow();

  public ClientImpl(String initName) throws RemoteException {
    name = initName;
    theStatusWindow.setVisible(true);
  }

  public String getName() throws RemoteException {
    return name;
  }

  public void printStatus(String status) throws RemoteException {
    theStatusWindow.setStatus(status);
  }
}

⌨️ 快捷键说明

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