从小程序打开小程序 [英] opening applet from applet

查看:65
本文介绍了从小程序打开小程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在netbeans中创建了一个应用程序,现在我想从另一个打开一个applet.但我在一行中遇到错误:

getAppletContext().showDocument()

我的代码是:

I have created an application in netbeans , now I want to open one applet from another . But I am getting error in line:

getAppletContext().showDocument()

my code is :

try
{
    AppletContext a = getAppletContext();
    URL u = new URL("surbhi1.html");
    a.showDocument(u,"_self");
}
catch (Exception e)
{
    System.out.println(e.getMessage());
}



请任何人对此有任何选择,然后告诉我.



Please any one have any option for this then please tell me.

推荐答案

尝试以下操作:

http://www.mkyong.com/applet/how-to-an -applet-launch-another-applet/ [
try this:

http://www.mkyong.com/applet/how-to-an-applet-launch-another-applet/[^]

might work.


这篇关于从小程序打开小程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆