FileDocCategorySizeDatePackage
ThreadWhiteboardTest.javaAPI DocExample630Thu Apr 10 22:14:20 BST 1997dcj.examples.Collaborative

ThreadWhiteboardTest.java

package dcj.examples.Collaborative;

import dcj.util.Collaborative.*;
import java.awt.Color;

public class ThreadWhiteboardTest {
  public static void main(String argv[]) {
    String name = argv[0];
    String host = argv[1];
    String mname = argv[2];
    int r = Integer.parseInt(argv[3]);
    int g = Integer.parseInt(argv[4]);
    int b = Integer.parseInt(argv[5]);
    Color color = new Color(r, g, b);
    try {
      ThreadWhiteboardUser wu = new ThreadWhiteboardUser(name, color,
                                             host, mname);
      while (true) {}
    }
    catch (Exception e) {}
  }
}