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

📄 sd.java

📁 Java Applet与浏览器间的通信技术
💻 JAVA
字号:
import java.applet.*;
import java.net.URL;
import java.net.MalformedURLException;
public class sd extends Applet{
	public void init(){
		String us="http://www.ytu.edu.cn";	//www.ytu.edu.cn为烟台大学主页地址
		URL u=null;
		AppletContext ac=getAppletContext();	//定义AppletContext类的对象ac
		try{
		  u=new URL(us);
		}catch(MalformedURLException e){
		   System.err.println("Malformed URL:"+us);
		}
		if(u!=null){
		   ac.showDocument(u);		//在当前浏览器窗口显示烟台大学主页
		}
	}
}

⌨️ 快捷键说明

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