public void setAppletContext(String htmlName, URL documentBase, URL codeBase, String appletProxyOrCommandOptions) {
		this.htmlName = htmlName;
		isApplet = (documentBase != null);
		String str = appletProxyOrCommandOptions;
		if (!isApplet) {
			// not an applet -- used to pass along command line options
			if (str.indexOf("-i") >= 0) {
				setLogLevel(3); // no info, but warnings and errors
				isSilent = true;
			}
			if (str.indexOf("-x") >= 0) {
				autoExit = true;
			}
			if (str.indexOf("-n") >= 0) {
				haveDisplay = false;
			}
			writeInfo = null;
			if (str.indexOf("-w") >= 0) {
				int i = str.indexOf("\1");
				int j = str.lastIndexOf("\1");
				writeInfo = str.substring(i + 1, j);
			}
			mustRender = (haveDisplay || writeInfo != null);
		}

		/*
		 * Logger.info("jvm11orGreater=" + jvm11orGreater + "\njvm12orGreater=" + jvm12orGreater + "\njvm14orGreater=" +
		 * jvm14orGreater);
		 */
		if (!isSilent) {
			Logger.info(JmolConstants.copyright + "\nJmol Version " + getJmolVersion() + "\njava.vendor:"
					+ strJavaVendor + "\njava.version:" + strJavaVersion + "\nos.name:" + strOSName + "\n" + htmlName);
		}

		if (isApplet)
			fileManager.setAppletContext(documentBase, codeBase, appletProxyOrCommandOptions);
		zap(); // here to allow echos
	}