请问如何在APPLET中实现调用显示另外一个html文件 URL u = new URL(…………);getAppletContext().showDocument(u);判断自己加吧 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 URL u = new URL(…………);getAppletContext().showDocument(u,"参数"); public boolean openurl(String avg) { URL url; try { url = new URL("http://www.csdn.net?ok="+avg); } catch(MalformedURLException _ex) { System.out.println("URL not found."); return true; } getAppletContext().showDocument(url, "_blank"); return true; }这个好象只能在applet的继承类中用。我是这么用的。 getAppletContext()这个是applet的函数,当然只能在applet的继承类中用 java精度问题,-208886373.07237820,请高手帮忙 关于Servlet程序 Boolean对象问题 applet是什么 急!求教高手:JTable中如何添加多行页眉并将多行页眉完整的打印出来? 关于对awt的下拉列表框的键盘搜索操作 applet中连远程数据库的问题 我的IE6(SP1)不能运行applet,该装个什么补丁? 我是IBM,怎么国内的JBuilder的书这么少,有没有JBuilder高手愿意一起写一本? 看完了think in java ,想再深入,如何学习 .policy文件怎么用 哪位大哥哥可以教我一下怎样使用WEBLOGIC。
getAppletContext().showDocument(u,"参数");
{
URL url;
try
{
url = new URL("http://www.csdn.net?ok="+avg);
}
catch(MalformedURLException _ex)
{
System.out.println("URL not found.");
return true;
}
getAppletContext().showDocument(url, "_blank");
return true;
}这个好象只能在applet的继承类中用。我是这么用的。