public void init() { is_master = false; dyn_usr = 0; dyn_view = 0; id = (int) System.currentTimeMillis(); ClientApplet.client_applet = this; appletContext = getAppletContext(); hostsrv = getParameter("HOSTSRV"); String http_portString = getParameter("HTTP_PORT"); if (http_portString != null) { try { Integer port = Integer.valueOf(http_portString); http_port = port.intValue(); } catch (NumberFormatException e) { http_port = 50000; } } URL applet_url = this.getCodeBase(); String host = applet_url.getHost(); if (host != null) hostsrv = host; int port = applet_url.getPort(); if (port > 0) http_port = port; user_interface = new UserInterface(); user_interface.init(); }
public void printInfo(String info) { // System.err.println(info + "\n"); user_interface.printInfo(info); }